1. Catalogs
  2. The MathWorks
  3. Creating Graphical User Interfaces

Creating Graphical User Interfaces

Creating Graphical User Interfaces
1 / 520 PagesView full catalog

Creating Graphical User Interfaces

Product catalog summary
Introduction to GUIs in MATLAB
Graphical User Interfaces (GUIs) in MATLAB provide a visual way for users to interact with software through elements like buttons and menus. This document explains the basics of GUIs, their operation through events and callbacks, and how to start creating them using MATLAB's GUIDE tool.
Creating GUIs with GUIDE
GUIDE (Graphical User Interface Development Environment) is MATLAB's tool for designing GUIs. It offers a layout editor and programming interface, allowing users to drag and drop components like buttons and text fields into a layout area. The document provides a step-by-step guide on designing, programming, and running a simple GUI using GUIDE.
Programmatic GUI Creation
In addition to using GUIDE, GUIs can be created programmatically by writing MATLAB code to define layout and functionality. This method is suitable for more complex GUIs or for users with programming experience. The document includes examples and function summaries for programmatic GUI creation.
Components and Callbacks
GUIs consist of various components, each associated with callbacks—functions triggered by user actions like button clicks. This event-driven programming allows asynchronous execution of callbacks based on user interactions. The document details how to program these components and manage callback execution.
Data Management in GUIs
The document discusses techniques for managing and sharing data within GUIs, such as using nested functions, application data, and the UserData property. It emphasizes the importance of organizing code efficiently and using utility functions for complex tasks.
Examples and Techniques
Several examples illustrate the creation of GUIs with different components and functionalities. Techniques for programming GUI components, managing data, and ensuring compatibility are highlighted throughout the document.
Cross-Platform Compatibility
To ensure GUIs appear consistent across different platforms, the document recommends using default system fonts and colors, and setting units appropriately for resizing behavior. It provides guidelines for designing GUIs that maintain their appearance on various screen sizes and resolutions.
Conclusion
This document serves as a comprehensive guide for creating and managing GUIs in MATLAB, covering both GUIDE and programmatic approaches. It provides detailed instructions and examples for effectively using MATLAB's tools to create interactive and functional GUIs.
See more

Catalog excerpts

Creating Graphical User Interfaces-13

11-56 Usingthe > uitoolbar Function >

 Open the catalog to page 13
Creating Graphical User Interfaces-53

RunningtheGUI 2 Inthepop-upmenu,select Membrane ,thenclickthe Mesh button.TheGUIdisplaysameshplotofTheMathWorks > L-shapedMembranelogoٙ. > 3 TryothercombinationsbeforeclosingtheGUI. >

 Open the catalog to page 53
Creating Graphical User Interfaces-87

GUIDEPreferences TomakeaFIG-filebackwardcompatible,youmustselect Ensurebackwardcompatibility(-v6) inthePreferencesdialogboxunder General>MAT-Files .Thisisshowninthefigurebelow. >

 Open the catalog to page 87
Creating Graphical User Interfaces-150

LayingOutaGUIDEGUI SetColumnProperties. TheTablePropertyEditor,openswith Column panelontop.Click Insert toaddtwomorecolumns. >

 Open the catalog to page 150
Creating Graphical User Interfaces-151

AddingComponentstotheGUI Select Shownamesenteredbelowasthecolumnheaders andsetthe > ColumnName byenteringRate,Amount,Available,andFixed/Adjin Name group.fortheAvailableandFixed/Adjcolumnssetthe > ColumnEditable propertyto > on .Lastlysetthe > ColumnFormat forthefourcolumns >

 Open the catalog to page 151
Creating Graphical User Interfaces-152

LayingOutaGUIDEGUI FortheRatecolumn,select Numeric .FortheAmountColumnselect Custom andintheCustomFormatEditor,choose Bank . >

 Open the catalog to page 152
Creating Graphical User Interfaces-154

LayingOutaGUIDEGUI SetRowProperties. IntheRowtab,leavethedefault > RowName , Shownumberedrowheaders . >

 Open the catalog to page 154
Creating Graphical User Interfaces-156

LayingOutaGUIDEGUI SetColorProperties. Specifythe > BackgroundColor and > RowStriping foryourtableintheColortab. >

 Open the catalog to page 156

All The MathWorks catalogs and technical brochures

  1. Stateflow

    8  Pages

  2. SimEvents

    7  Pages

  3. SimDriveline

    7  Pages

  4. SimHydraulics

    7  Pages

  5. SimRF

    6  Pages

  6. MATLAB Coder

    5  Pages

  7. OPC Toolbox

    5  Pages

  8. SimBiology

    6  Pages

  9. xPC Target

    5  Pages

  10. SimMechanics

    7  Pages

  11. Simscape

    7  Pages

  12. Simulink

    6  Pages

  13. MATLAB®

    6  Pages

*Prices are pre-tax. They exclude delivery charges and customs duties and do not include additional charges for installation or activation options. Prices are indicative only and may vary by country, with changes to the cost of raw materials and exchange rates.