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!