where can I find a path of a function that matlab accessed?

1 view (last 30 days)
I wrote a function 'test.m'. I called the function from Livescript
test(x,y)
How can one find the directory of test.m?

Accepted Answer

Walter Roberson
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)

Categories

Find more on Software Development Tools in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!