how to save and load variables from a GUI in the next GUI

조회 수: 1 (최근 30일)
Giuseppe
Giuseppe 2014년 5월 17일
답변: Jan 2014년 5월 17일
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.

답변 (1개)

Jan
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:

카테고리

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