11-01-2014, 11:34 AM
Matlab 6: GUI Tutorial
GUI Tutorial[.pdf (Size: 417.33 KB / Downloads: 97)
Overview
Making Graphical User Interfaces in Matlab is very simple. A good place
to begin learning about GUI development on the Matlab platform is to first
understand how Matlab manages graphical objects. This particular tutorial
focuses primarily on Matlab 6. This platform makes and excellent choice for
developing interactive interfaces as the previous versions of Matlab had a
noticeably clumsier and less mature feel when to came to developing GUI’s.
Developing GUI’s on Matlab 6 is a breeze and hopefully this tutorial will
be sufficient to get most anyone started. If you are running an older version of
Matlab, this tutorial will help you get started however it will not be able to guide
you all the way. I would recommend a migration to Matlab 6 as it as a more
stable and a more mature platform where many of the bugs, especially in mat
lab’s ability to handle graphical objects have been addressed.
The main difference between Matlab 6 and the previous versions is the
following. Matlab 6 uses java while the others used C++. I should mention that
knowledge of neither platform is necessary to use matlab6 properly.
IN MATLAB 6
Matlab 6 has a function, which collects every handle in the GUI and places it in a
convenient data structure. This makes life very easy as the user does not have to
poll every object for it’s handle.
IN PREVIOUS VERSION OF MATLAB
To obtain a handle in the previous version the user must poll the object for it’s handle. To
poll the object the user must give every GUI object a unique ‘Tag’. For instance the
default tag for the ‘PushButton’ is ‘pustbutton1’. There for the following is what the user
would need to do in order to obtain the handle of the object.