matlab-uihtml-app-builder

Build interactive HTML/JavaScript front-ends for MATLAB computations via uihtml.

162|31|Updated Oct 25, 2025
One-click install
npx skills add https://github.com/matlab/skills --skill matlab-uihtml-app-builder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: matlab-uihtml-app-builder
Source: https://github.com/matlab/skills/tree/main/skills/matlab-uihtml-app-builder
Command: npx skills add https://github.com/matlab/skills --skill matlab-uihtml-app-builder

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables developers to build modern, interactive web-based user interfaces for MATLAB computations by bridging HTML/JavaScript front-ends with MATLAB backends through the uihtml component, removing the need for bespoke inter-process communication.

Core Features & Use Cases

  • Bidirectional data flow between JavaScript and MATLAB via htmlComponent Data and events.
  • Rapid prototyping of dashboards, controls, and data entry forms with a MATLAB backend.
  • Real-world scenarios include web UIs for parameterized simulations, data visualization dashboards, and form-driven tools that drive MATLAB calculations.

Quick Start

Use this Skill to create a simple MATLAB-backed UI by creating an HTML interface and connecting it to MATLAB with uihtml. For example:

  • In MATLAB, create a UI figure and uihtml: fig = uifigure('Name','My App'); h = uihtml(fig, 'Position', [20 20 760 400]); h.HTMLSource = fullfile(pwd, 'app.html'); h.HTMLEventReceivedFcn = @(src, evt) myHandler(src, evt);
  • In app.html, call setup(htmlComponent) in your JavaScript to wire up event listeners and handlers.

Frequently Asked Questions about matlab-uihtml-app-builder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an HTML and JavaScript web UI for a MATLAB app?

The uihtml component enables bidirectional data flow between HTML/JavaScript and MATLAB, allowing real-time updates and event-driven communication for interactive web UIs backed by MATLAB computations.

How does JavaScript communicate with MATLAB through the uihtml bridge?

JavaScript communicates with MATLAB through the htmlComponent object using the setup function to wire event listeners, while MATLAB receives events via the HTMLEventReceivedFcn callback to handle data exchange safely.

What is the best way to create a MATLAB dashboard with web UI controls?

The best way to create a MATLAB dashboard with web UI controls is using the uihtml component, which supports rapid prototyping of parameterized simulations and form-driven tools through bidirectional data binding.

Do I need external dependencies to connect HTML front-ends to MATLAB calculations?

No external dependencies are required to connect HTML to MATLAB, because the native uihtml component acts as a self-contained bridge supporting bidirectional data exchange and event callbacks.

Can I use JavaScript event listeners to trigger real-time MATLAB updates?

Yes, you can use JavaScript event listeners to trigger real-time MATLAB updates by calling setup(htmlComponent) in your HTML source and defining an HTMLEventReceivedFcn in MATLAB to process incoming events.