Effacer les filtres
Effacer les filtres

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

2 vues (au cours des 30 derniers jours)
Giuseppe
Giuseppe le 17 Mai 2014
Réponse apportée : Jan le 17 Mai 2014
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.

Réponses (1)

Jan
Jan le 17 Mai 2014
Sharing variables between callbacks or different GUIs is discussed frequently. Therefore searching in the forum at first is an efficient idea:

Catégories

En savoir plus sur MATLAB dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by