0

INTERACTING TWO MATLAB GUIS PROGRAMATICALLY

A good knowledge in developing GUI by using MATLAB GUIDE is required. For those who do not have any, this site is a good place to start. If it is offline, there are tons out there, find one.
Acknowledgement: this example is based on Doug Hull’s work. While he use GUIDE for building this example, I approach it programmatically.

1.     Develop GUI

On command window, type:
guide
a new window will appear, see (figure 1).
Click menu ‘Tools’ à GUI Options. A Popup window will appear (figure 2). Click ‘Generate FIG-file only’. Click ‘OK’ to close the window. Add and arrange several uicontrols to the plane so that it will look like figure 3. Save the GUI to ‘appDataTest1’ or whatever one likes.

Now, open MATLAB editor, save the file to the same name as the GUI one just built. Actually one can save the mfile to any name, but it is a good practice, though. One will know later why.

First step, call the GUI one just built, by calling the GUI’s name.
fig1 = openfig('appDataTest1.fig');

read more... 


Disclaimer !

This site and its contents are copyrighted to Abqori Aula unless otherwise mentioned. The images, videos, and other artworks are belong to their authors. This site does not host any copyrighted files.