필터 지우기
필터 지우기

Matlab workspace variable in base workspace.

조회 수: 1 (최근 30일)
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 7월 9일
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.

답변 (1개)

Image Analyst
Image Analyst 2012년 7월 9일
편집: Image Analyst 2012년 7월 9일
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
Thulasi Durai Durai Samy
Thulasi Durai Durai Samy 2012년 7월 9일
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

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by