it is possible to access the 'base' workspace from a subfonction ?
9 ビュー (過去 30 日間)
古いコメントを表示
I'm would like to access some variables in the 'base' workspace from a subfonction. because when I tried the variables is not found.
thanks in advance ;)
0 件のコメント
採用された回答
Daniel Shub
2012 年 7 月 17 日
Yes if is possible to manipulate and access the base workspace from within a function. Just because MATLAB provides this functionality, however, doesn't mean it is a good idea to use it. Please consider alternatives.
The functions you are looking for are EVALIN and ASSIGNIN.
2 件のコメント
その他の回答 (1 件)
khaled DAWOUD
2012 年 7 月 17 日
you can use assignin function to reference to variable in the workspace in your function.
参考
カテゴリ
Help Center および File Exchange で Whos についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!