How I can find the directory the script or function running now is

3 ビュー (過去 30 日間)
Yona
Yona 2017 年 3 月 20 日
コメント済み: Yona 2017 年 3 月 20 日
I am running a script and i want to know the path it is with out using the script name.
The path is in 'matlabpath' so by using pwd i can get a different path. It is exist a way to know the directory of the running script or function(In running i mean that i what to use the command in the script to get the answer)?

採用された回答

Adam
Adam 2017 年 3 月 20 日
編集済み: Adam 2017 年 3 月 20 日
doc mfilename

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSearch Path についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by