Can a function inside a parent code access the full workspace of that parent code?
Ältere Kommentare anzeigen
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?
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 30 Jul. 2013
1 Stimme
evalin('caller', 'who') to find the list of variables, and further evalin('caller') to get each of the values.
1 Kommentar
Anish
am 30 Jul. 2013
Kategorien
Mehr zu Scope Variables and Generate Names finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!