MATLAB Creating Graphical User Interfaces

(ff) #1
After you click OK, App Designer creates a StartupFcn callback that has the function
signature you defined in the dialog box. If your app already has a StartupFcn callback,
then the function signature is updated to include the new input arguments.

After you have created the input arguments and coded the StartupFcn, you can test the
app. Expand the drop-down list from the Run button in the toolstrip. In the second menu
item, specify comma-separated values for each input argument. The app runs after you
enter the values and press Enter.

NoteMATLAB might return an error if you click the Run button without entering input
arguments in the drop-down list. The error occurs because the app has required input
arguments that you did not specify.

After successfully running the app with a set of input arguments, the Run button icon
contains a blue circle.

The blue circle indicates that your last set of input values are available for re-running
your app without having to type them again. Up to seven sets of input values are available
to choose from. Click the top half of the Run button to re-run the app with the last set of
values. Or, click the bottom half of the Run button and select one of the previous sets of
values.

17 App Programming

Free download pdf