MATLAB Creating Graphical User Interfaces

(ff) #1

Programming Your App


App Designer defines your app as a MATLAB class. You do not need to understand classes
or object-oriented programming to create an app because App Designer manages those
aspects of the code. However, programming in App Designer requires a different
workflow than working strictly with functions. You can review a summary of this workflow
at any time by clicking the Show Tips button in the Resources tab of the toolstrip.

Managing UI Components

When you add a UI component to your app, App Designer assigns a default name to the
component. Use that name (including the app prefix) to refer to the component in your
code. You can change the name of a component by double-clicking the name in the
Component Browser and typing a new name. App Designer automatically updates all
references to that component when you change its name.

17 App Programming

Free download pdf