Is there a way to Identify the calling function within a function?
Show older comments
Hello!
I would like a generic function that "knows" which function called it (to set certain variables) without having to pass it through varargin or any other argument passed like myfunc(hidden_argument).
A client will get source code for the calling functions, but not for the generic function, which will operate differently for each calling function.
Thanks!
Doug
1 Comment
Douglas Anderson
on 3 Jan 2022
Accepted Answer
More Answers (0)
Categories
Find more on Scope Variables and Generate Names 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!