フィルターのクリア

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