Matlab workspace variable in base workspace.

3 vues (au cours des 30 derniers jours)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy le 9 Juil 2012
Hello
I had created some variables in GUI, if i give breakpoint in the function I could able to access these variables, but other wise I cannot access these variables, actually where these variables available. Can I see them in base workspace.
Can some body help me.

Réponses (1)

Image Analyst
Image Analyst le 9 Juil 2012
Modifié(e) : Image Analyst le 9 Juil 2012
Why do you need to see them in the base workspace? I never have need to do that. You said you can see them when you set a breakpoint, and you can do stuff with them in the command window so why is seeing them in the base workspace a necessity? Nonetheless, here is how to do it: http://matlab.wikia.com/wiki/FAQ#How_can_I_share_data_between_callback_functions_in_my_GUI.28s.29.3F Or you can use the assignin() function.
  1 commentaire
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy le 9 Juil 2012
I use assignin function it works great, but the gui runs with set of variables I had declared at starting of the function. But in command window i can access the base work space variables which I can see. but can I change the workspace as my gui workspace in matlab for time being

Connectez-vous pour commenter.

Catégories

En savoir plus sur Scope Variables and Generate Names dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by