How can I get the filename of a running script

23 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Environment and Settings 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by