How can I get the filename of a running script

24 ビュー (過去 30 日間)
Ernst Affeldt
Ernst Affeldt 2018 年 9 月 25 日
回答済み: Ernst Affeldt 2018 年 10 月 2 日
Matlab script

採用された回答

Dimitris Kalogiros
Dimitris Kalogiros 2018 年 9 月 25 日
編集済み: Dimitris Kalogiros 2018 年 9 月 25 日
For example, you can include into your m-file the following command:
myName= mfilename
Then variable myName, will contain a string with the name of the file.

その他の回答 (1 件)

Ernst Affeldt
Ernst Affeldt 2018 年 10 月 2 日
The comment regarded the last answer

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by