Develop Apps Programmatically - MATLAB & Simulink (original) (raw)

Main Content

Develop apps programmatically using MATLAB® functions

Design and edit apps programmatically by coding their layout and behavior using MATLAB functions. Use this method if you want extra control over the structure of your code. For an introduction, see Create and Run a Simple Programmatic App.

Functions

expand all

Common Components

Figure Tools

Instrumentation Components

uigauge Create gauge component
uiknob Create knob component
uilamp Create lamp component
uiswitch Create slider switch, rocker switch, or toggle switch component

Extensible Components

uihtml Create HTML UI component

Graphics Theme

theme Set or get graphics theme (Since R2025a)
fliplightness Darken light colors and lighten dark colors (Since R2025a)

Style

Control

expand Expand tree node
collapse Collapse tree node
move Move tree node
open Open context menu at location within UI figure
focus Give focus to UI component (Since R2022a)
scroll Scroll to location within UI component
isInScrollView Determine if component is visible in scrollable container (Since R2022a)
sendEventToHTMLSource Send HTML UI component event from MATLAB to JavaScript (Since R2023a)

Layout

uistack Reorder visual stacking of UI components
movegui Move figure to specified location on screen

Program Execution

uiwait Block program execution and wait to resume
uiresume Resume execution of suspended program
waitfor Block execution and wait for condition

App Data, Settings, and Fonts

Alert and Confirmation

Input

File System

uigetfile Open file selection dialog box
uiputfile Open dialog box for saving files
uigetdir Open folder selection dialog box
uiopen Open file selection dialog box and load selected file into workspace
uisave Open dialog box for saving variables to MAT-file

Properties

expand all

Common Components

Figure Tools

Instrumentation Components

Extensible Components

Topics

Customize App Appearance

Program App Behavior