MATLAB Creating Graphical User Interfaces

(ff) #1

Create Polar Axes Programmatically in an App


This app shows how to display a plot by creating the axes programmatically before calling
a plotting function. In this case, the app plots a polar equation using the polaraxes and
polarplot functions. When the user changes the value of a or b, or when they select a
different line color, the plot updates to reflect their changes.

This example also demonstrates the following app building concepts:


  • Creating different types of axes programmatically to display plots that uiaxes does
    not support

  • Calling a plotting function in App Designer

  • Sharing a callback with multiple components

  • Displaying Unicode® characters in a label


18 App Designer Examples

Free download pdf