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

조회 수: 1 (최근 30일)
alpedhuez
alpedhuez 2020년 12월 13일
댓글: alpedhuez 2020년 12월 13일
I wrote a function 'test.m'. I called the function from Livescript
test(x,y)
How can one find the directory of test.m?

채택된 답변

Walter Roberson
Walter Roberson 2020년 12월 13일
편집: Walter Roberson 2020년 12월 13일
test_info = which('test');
test_dir = fileparts(test_info);

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Software Development Tools에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by