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!