where can I find a path of a function that matlab accessed?
1 view (last 30 days)
Show older comments
I wrote a function 'test.m'. I called the function from Livescript
test(x,y)
How can one find the directory of test.m?
0 Comments
Accepted Answer
Walter Roberson
on 13 Dec 2020
Edited: Walter Roberson
on 13 Dec 2020
test_info = which('test');
test_dir = fileparts(test_info);
More Answers (0)
See Also
Categories
Find more on Software Development Tools 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!