This chapter covers several techniques you can use to make your GUI tools more interactive and helpful. Like the chapters that follow, it is meant as a resource and reference rather than a tutorial.
GUI pop-ups. MATLAB comes with a variety of small predefined GUI tools in the form of ready-to-go dialog boxes and pop-up tools. These can be added to your own GUI tools to enhance their functionality.
Waitbars Waitbar pop-ups show the user how much progress has been made toward the completion of a computational task. The key MATLAB command is
waitbar. (Section 12.1).
File dialogs To save information to a MATLAB-formatted
*.mat file, one can conveniently use a combination of the
save command and the
uiputfile command, which pops up a familiar file navigation tool. To read information from a file, one can use
uigetfile (Section 12.2) Writing and reading from formatted text files is a little more complicated and can be accomplished using the commands
textscan (Section 12.3).
Input dialogs The pop-up produced by the
inputdlg command allows the user to enter specific ...