How to get the variables into workspace while running GUI?

5 vues (au cours des 30 derniers jours)
Nithya
Nithya le 11 Mar 2014
Commenté : Chandrasekhar le 12 Mar 2014
I have small functions and scripts inside my GUI. When i run my GUI I cannot see any variables and its datas in my workspace. Therefore my programs are getting error while running GUI. Is there any command that would help me.

Réponse acceptée

David Sanchez
David Sanchez le 11 Mar 2014
There are several things you can do. To see the value of a variable in the workspace, do not write the semicolon, that will present the variable and its value in runtime. You can also declare global variables within your functions.
doc global
for examples and full documentation
  2 commentaires
Nithya
Nithya le 12 Mar 2014
Actually its a very big matrix so i dont want it to be diplayed in command screen.
Chandrasekhar
Chandrasekhar le 12 Mar 2014
vars = evalin('base','who');

Connectez-vous pour commenter.

Plus de réponses (1)

Chandrasekhar
Chandrasekhar le 11 Mar 2014
use the command
evalin('base','who');

Community Treasure Hunt

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

Start Hunting!

Translated by