Matlab workspace variable in base workspace.

1 visualización (últimos 30 días)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy el 9 de Jul. de 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.

Respuestas (1)

Image Analyst
Image Analyst el 9 de Jul. de 2012
Editada: Image Analyst el 9 de Jul. de 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 comentario
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy el 9 de Jul. de 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

Iniciar sesión para comentar.

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by