Names of variables?
Show older comments
Is it possible inside function to know the names of variables, which are used during call of this function? How to pass them inside it?
2 Comments
Image Analyst
on 26 Oct 2018
Yes, there is a way but it's so arcane that only Walter remembers it so you'll have to wait for him. You can get the names, as a cell array of strings, that were used in the main, calling routine when the function was called, which of course might be different than the names used in the function definition line. I have never needed to know this. Why do you want to know?
Valeriy
on 26 Oct 2018
Accepted Answer
More Answers (0)
Categories
Find more on Whos in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!