Main Content

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Entwickeln von uifigure-basierten Apps

Programmgesteuerte App-Entwicklung über UI-Abbildungen, die speziell für die Erstellung einer App konzipiert wurden (Funktion uifigure)

Entwickeln und bearbeiten Sie Apps programmgesteuert, indem Sie deren Layout und Verhalten mit MATLAB®-Funktionen kodieren. Mit der Funktion uifigure kann eine Abbildung erstellt werden, die speziell für die App-Entwicklung konfiguriert ist und als Container für Ihre Benutzeroberfläche dient. UI-Abbildungen unterstützen denselben Typ moderner Grafiken und interaktiver UI-Komponenten wie App Designer.

Funktionen

alle erweitern

uifigureCreate figure for designing apps
uigridlayoutCreate grid layout manager
uipanelCreate panel container
uitabgroupCreate container for tabbed panels
uitabCreate tabbed panel
uiaxesCreate UI axes for plots in apps
axesCreate Cartesian axes
geoaxesCreate geographic axes
polaraxesCreate polar axes

Gängige Komponenten

uibuttonCreate push button or state button component
uibuttongroupCreate button group to manage radio buttons and toggle buttons
uicheckboxCreate check box component
uidatepickerCreate date picker component
uidropdownCreate drop-down component
uieditfieldCreate text or numeric edit field component
uihyperlinkCreate hyperlink component (Seit R2021a)
uiimageCreate image component (Seit R2019a)
uilabelCreate label component
uilistboxCreate list box component
uiradiobuttonCreate radio button component
uisliderCreate slider or range slider component
uispinnerCreate spinner component
uitable Create table user interface component
uitextareaCreate text area component
uitogglebuttonCreate toggle button component
uitreeCreate tree or check box tree component
uitreenodeCreate tree node component

Abbildungstools

uicontextmenuCreate context menu component
uimenuCreate menu or menu items
uipushtoolCreate push tool in toolbar
uitoggletoolCreate toggle tool in toolbar
uitoolbarCreate toolbar in figure

Komponenten zur Instrumentierung

uigaugeCreate gauge component
uiknobCreate knob component
uilampCreate lamp component
uiswitchCreate slider switch, rocker switch, or toggle switch component

Erweiterbare Komponenten

uihtmlCreate HTML UI component (Seit R2019b)

Gestaltbare Komponenten

uistyleCreate style for UI component (Seit R2019b)
addStyleAdd style to UI component (Seit R2019b)
removeStyleRemove style from UI component (Seit R2019b)

Baumknoten

expandExpand tree node
collapseCollapse tree node
moveMove tree node

Kontextmenü

openOpen context menu at location within UI figure (Seit R2020a)

Scrollbare Komponenten

scrollScroll to location within component
isInScrollViewDetermine if component is visible in scrollable container (Seit R2022a)

Fokussierbare Komponenten

focusFocus UI component (Seit R2022a)

Erweiterbare Komponenten

sendEventToHTMLSourceSend HTML UI component event from MATLAB to JavaScript (Seit R2023a)
uialertDisplay alert dialog box
uiconfirmCreate confirmation dialog box
uiprogressdlgCreate progress dialog box
uisetcolorOpen color picker
uigetfileOpen file selection dialog box
uiputfileOpen dialog box for saving files
uigetdirOpen folder selection dialog box
uiopenOpen file selection dialog box and load selected file into workspace
uisaveOpen dialog box for saving variables to MAT-file

Eigenschaften

alle erweitern

UI Figure PropertiesControl UI figure appearance and behavior for uifigure-based apps
GridLayout PropertiesControl grid layout manager behavior
Panel PropertiesControl panel appearance and behavior
TabGroup PropertiesControl tab group appearance and behavior
Tab PropertiesControl tab appearance and behavior
UIAxes PropertiesUI axes appearance and behavior
Axes Properties Axes appearance and behavior
GeographicAxes PropertiesControl geographic axes appearance and behavior
PolarAxes PropertiesPolar axes appearance and behavior

Gängige Komponenten

Button PropertiesControl button appearance and behavior
ButtonGroup PropertiesControl button group appearance and behavior
CheckBox PropertiesControl check box appearance and behavior
CheckBoxTree PropertiesControl check box tree appearance and behavior (Seit R2021a)
DatePicker PropertiesControl date picker appearance and behavior
DropDown PropertiesControl drop-down list appearance and behavior
EditField PropertiesControl edit field appearance and behavior
Hyperlink PropertiesControl hyperlink appearance (Seit R2021a)
Image PropertiesControl image component appearance and behavior (Seit R2019a)
Label PropertiesControl label appearance
ListBox PropertiesControl list box appearance and behavior
NumericEditField PropertiesControl numeric edit field appearance and behavior
ProgressDialog PropertiesControl progress dialog box appearance and behavior
RadioButton PropertiesControl radio button appearance
Slider PropertiesControl slider appearance and behavior
Spinner PropertiesControl spinner appearance and behavior
StateButton PropertiesControl state button appearance and behavior
Table PropertiesControl table UI component appearance and behavior
TextArea PropertiesControl text area appearance and behavior
ToggleButton PropertiesControl toggle button appearance
Tree PropertiesControl tree appearance and behavior
TreeNode PropertiesControl tree node appearance and behavior

Abbildungstools

ContextMenu PropertiesControl context menu appearance and behavior
Menu PropertiesControl menu appearance and behavior
PushTool PropertiesControl push tool appearance and behavior
ToggleTool PropertiesControl toggle tool appearance and behavior
Toolbar PropertiesControl toolbar appearance and behavior

Komponenten zur Instrumentierung

DiscreteKnob PropertiesControl discrete knob appearance and behavior
Gauge PropertiesControl gauge appearance and behavior
Knob PropertiesControl knob appearance and behavior
Lamp PropertiesControl lamp appearance
LinearGauge PropertiesControl linear gauge appearance and behavior
NinetyDegreeGauge PropertiesControl ninety-degree gauge appearance and behavior
RockerSwitch PropertiesControl rocker switch appearance and behavior
SemicircularGauge PropertiesControl semicircular gauge appearance
Switch PropertiesControl switch appearance and behavior
ToggleSwitch PropertiesControl toggle switch appearance and behavior

Erweiterbare Komponenten

HTML PropertiesControl HTML UI component appearance and behavior (Seit R2019b)
Style PropertiesStyle for table or tree UI component (Seit R2019b)

Themen

Grundlagen für die Erstellung von Programm-Apps

Benutzerdefinierte App-Darstellung

Programmierung des App-Verhaltens

Verwandte Informationen