필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

i want to get variable in the work space

조회 수: 2 (최근 30일)
ihab
ihab 2016년 8월 31일
마감: MATLAB Answer Bot 2021년 8월 20일
i want to get a variable in the work space ; i can display it in the command window but not saved in the work space.
  댓글 수: 1
Stephen23
Stephen23 2016년 8월 31일
편집: Stephen23 2016년 8월 31일
If some variable exists then it is most definitely in a workspace, contrary to what your question states. Perhaps not in the base workspace, but it will most definitely be in some workspace. Most likely it is in some callback's or other function's workspace, although you didn't give any information that would actually help us understand what you are doing.
In any case, you should start learning about the different workspaces, and how to pass data between them:
And once you read those then you will know how to get any variables from any workspace into another workspace. Hint: pass arguments or use nested functions. Avoid using global or assignin, which are not good ways to write code no matter how much beginners love using them.

답변 (0개)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by