Matlab function that tells the full path of from where the function has been called
3 views (last 30 days)
Show older comments
Not sure the title is very clear so I'll describe my project :
There is this class 1 in Desktop/Folder/Sub_Folder1/@class1/class1.m in which a function1 is coded.
There is this class 2 in Desktop/Folder/Sub_Folder2/@class2/class2.m in which a function 2 is coded.
When function2 is called, it calls function1 that displays a message. There will be in the future function3, 4, 5.. that will also call function1 and display a message so I want to know in the message what function triggered function1.
I tried dbstack but it doesn't give me the whole path. only 'class2.function2'
Also, for some reason I'm in matlab2014a.
0 Comments
Answers (2)
See Also
Categories
Find more on Environment and Settings 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!