MATLAB Answers

Import Variables in GUI to the main workspace

6 views (last 30 days)
Shawn Chang
Shawn Chang on 17 Nov 2012
Hi, may I khow to import the variables working at GUI to the main working space using button callback? I wish to import the variables so that the data can be use for other computation and analysis purpose. Thanks you

  0 Comments

Sign in to comment.

Accepted Answer

Arthur
Arthur on 17 Nov 2012
In the callback of your button, put
assignin('base','yourvariable',yourvariable)
If you have a simple GUI that is closed after variable selection, you could also make your variables outputs of the GUI, like:
output = myGUI();

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.


Translated by