Can a function inside a parent code access the full workspace of that parent code?
古いコメントを表示
I have a child function being called inside the original code. Can I have the function be able to access all of the variables (workspace) from the original code? If so, how?
採用された回答
その他の回答 (1 件)
Walter Roberson
2013 年 7 月 30 日
1 投票
evalin('caller', 'who') to find the list of variables, and further evalin('caller') to get each of the values.
カテゴリ
ヘルプ センター および File Exchange で Scope Variables and Generate Names についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!