Effacer les filtres
Effacer les filtres

Load and Save variables to MATLAB GUI

1 vue (au cours des 30 derniers jours)
Stuart
Stuart le 9 Avr 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.

Réponses (1)

Jan
Jan le 9 Avr 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 commentaire
Stuart
Stuart le 9 Avr 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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by