Passing Data Between GUIDE Callbacks Without Globals in MATLAB
(Originally posted on Doug's MATLAB Video Tutorials blog.)
Very often MATLAB users want to share data between different callbacks that they have in their MATLAB GUIs. This video shows a technique that is applicable for when the data being shared is already stored in the state of the GUI. Examples of data that is stored in the state of the GUI includes the state (checked or unchecked) of a checkbox or the string that is held in an edit box. This programming pattern is also good for having a variety of UIcontrols update the GUI in the same way.
If you are looking to share data between callbacks that is not stored in the state of the GUI, then this very old video should help. It shows you how to use GETAPPDATA and SETAPPDATA to share data in a MATLAB GUI.
Recorded: 23 Nov 2011
Featured Product
MATLAB
Up Next:
Related Videos:
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia-Pacífico
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)