필터 지우기
필터 지우기

Load and Save variables to MATLAB GUI

조회 수: 1 (최근 30일)
Stuart
Stuart 2013년 4월 9일
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.

답변 (1개)

Jan
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.
  댓글 수: 1
Stuart
Stuart 2013년 4월 9일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by