Friday, 29 November 2013

How to use Popup menu & Axes in MATLAB GUI?

AIM: Study and Implementation of Popup menu and Axes in MATLAB GUI.
1. For opening GUI tool simply type following command in command window.
>> guide
This command will open GUI toolbox.

Fig: 1 GUI menu bar with Popup menu & Axes

2. In second step simply click over Popup menu as mentioned in fig 1. Drag that Popup menu and Axes in empty space as mentioned in fig 2.
Fig: 2 GUI with a Popup menu and Axes

3. Next step is to change the properties of the Popup menu. For this just double click on Popup menu this action will open property inspector. Property inspector consists of various properties of the Popup menu. You have to change background color if necessary, font size, font weight, remember tag of the Popup menu or keep tag as it is, you have to change the string of the Popup menu as shown in fig 3. Our aim is to display Sine wave and Exponential growing wave on Axes by selecting these in popup menu. 

Fig: 3 Property Inspector of Popup menu with Different strings.

4. Next thing is to open property inspector of the axes and convert visibility mode from on to off as shown in fig 4.

Fig: 4 Property Inspector of Axes with Visibility mode OFF.

Fig: 5 Final fig file with Popup menu and Axes.

5. Next thing is to right click on popup menu and open callback, write linking code there to make a connection between popup menu and axes as shown in fig 5.
Syntax for AXES:

Fig: 6 m file with linking code.

6. Following figures shows you final output of the Popup menu and Axes.

  Fig: 7 final output fig file

Fig: 8 final output fig file with sine wave 

YouTube video:

1 comment:

  1. Thanks Admin Amazing Post Keep UpDate.Thank You.

    Top 10 Most Popular Internet Marketing Tools,Black Hat Vip Seo Software,Website Seo Backlinks Software,Website Traffic Bot Software.Etc Free Download Online Please Visit Our Website