MATLAB Creating Graphical User Interfaces

(ff) #1

(^7) Next, set the axes aspect ratio and limits. In the Component Browser, select the
app.UIAxes component. Then, make the following changes in the Inspector tab:



  • Set PlotBoxAspectRatio to 1,1,1.

  • Set XLim and YLim to 0,100.


(^8) Click Run to save and run the app.
Change or Disconnect a Callback
To assign a different callback to a component, select the component in the Component
Browser. Then click the Callbacks tab and select a different callback from the drop-
down menu. The drop-down displays only the existing callbacks.
17 App Programming

Free download pdf