Borrar filtros
Borrar filtros

Load and Save variables to MATLAB GUI

1 visualización (últimos 30 días)
Stuart
Stuart el 9 de Abr. de 2013
I am trying to create a GUI in MATLAB which need to remember previous values for some variables it displays. However, if it is the first time the GUI is run these values will be assigned to empty cells. I found a link on a previous question to Dougs video which shows very well how to load and save variables in MATLAB GUI:
I based my code around his example and it loads and save variables correctly however, when I do my isempty check for the value handles.uitable_Database which is displayed in a uitable in the GUI it is no longer an empty cell? It assigns this variable to 240.236 which when I check my handles seems to be the maximum and minimum values of this variable which I have not set. This value changes every time I run the code. Why is this parameter no long a blank cell? Any help would be much appreciated, thank you.

Respuestas (1)

Jan
Jan el 9 de Abr. de 2013
The value "seems to be the maximum and minimum value"?! Does it only seem to be, or is it the max and min? And how can it be the max and min at the same time, when the data are not scalars?
I guess, and this is all I can without seeing the actual code, that 240.236 is the handle of the UITABLE object.
  1 comentario
Stuart
Stuart el 9 de Abr. de 2013
No it is the maximum and minimum values associated with that variables. Both the maximum and minimum values are the same value. How do you change the handle of the uitable object? I have not assigned it anything

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by