how to save and load variables from a GUI in the next GUI
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Jan
am 17 Mai 2014
Sharing variables between callbacks or different GUIs is discussed frequently. Therefore searching in the forum at first is an efficient idea:
0 Kommentare
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!