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!