Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

New to MATLAB?

Import Variables in GUI to the main workspace

Asked by Shawn Chang

Shawn Chang (view profile)

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


Shawn Chang

Shawn Chang (view profile)


No products are associated with this question.

1 Answer

Answer by Arthur

Arthur (view profile)

on 17 Nov 2012
Accepted answer

In the callback of your button, put


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();



Arthur (view profile)

Contact us