how to save and load variables from a GUI in the next GUI
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Jan
2014-5-17
Sharing variables between callbacks or different GUIs is discussed frequently. Therefore searching in the forum at first is an efficient idea:
0 个评论
另请参阅
类别
在 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!