

The components of a GUI must be organized within a container, which is a window on the computer screen. Axes, which are used to show graphical data, are created by the function axes. Toolbars are organized by function uitoolbar. The function uicontrol creates graphical controls and text boxes, and menus are created by the functions uimenu and uicontextmenu. The method of components includes graphical controls (pushbuttons, togglebuttons, edit boxes, files, sliders, etc.) static components (text boxes), menus, toolbars, and axes. The three principal components required to create a MATLAB graphical user interface are: ComponentsĮach element on a MATLAB GUI (pushbuttons, labels, edit boxes, etc.) is a graphical component. Such data are known as events, and a program that responds to events is said to be event-driven. GUIs are harder for the programmer because a GUI-based application must be prepared for mouse clicks (or possibly keyboard input) for any GUI item at any time.

It contains push buttons, toggle buttons, lists, menus, text boxes, etc. How does Graphical User Interface Work?Ī graphical user interface provides the client with a familiar environment in which to work. A good GUI can make applications more comfortable to use by providing them with a consistent appearance and with intuitive controls such as pushbuttons, edit boxes, list boxes, sliders, and menus. Next → ← prev MATLAB Graphical User InterfaceĪ graphical user interface (GUI) is a visual interface to a program.
