how to save and load variables from a GUI in the next GUI
1 view (last 30 days)
Show older comments
Hello, I have the following problem: almost 2 edit text in gui1 transform strings into numbers and execute operations within the callback function even when I implement a function that I created. Specifically within the callback run the following:
y = str2num (get (handles.edit1_B, 'string'));
T = y/1.6;
damping str2num = (get (handles.edit2, 'string'));
beta = 0.213 ^ damping;
range = T * beta;
% Physical properties of air temperature dependent
[C_P, age, Pr, cond, GAMMA, P0, rho_0, C_0] = Temperatura1 (T);
Taking the display of any variable beta or gamma or eta in command window shows me the results of operations, but does not save any variable in the workspace. The problem is that T is a variable that I need to implement a GUI later (GUI2). I would like to know how you could do first of all to save the variable T or the other (like y or damping) and then how to load the subsequent variable in the GUI.
Thank you for your cooperation.
0 Comments
Answers (1)
Jan
on 17 May 2014
Sharing variables between callbacks or different GUIs is discussed frequently. Therefore searching in the forum at first is an efficient idea:
0 Comments
See Also
Categories
Find more on Migrate GUIDE Apps in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!