Load and Save variables to MATLAB GUI
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Jan
2013-4-9
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!