How can I get the filename of a running script

24 Ansichten (letzte 30 Tage)
Ernst Affeldt
Ernst Affeldt am 25 Sep. 2018
Beantwortet: Ernst Affeldt am 2 Okt. 2018
Matlab script

Akzeptierte Antwort

Dimitris Kalogiros
Dimitris Kalogiros am 25 Sep. 2018
Bearbeitet: Dimitris Kalogiros am 25 Sep. 2018
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.

Weitere Antworten (1)

Ernst Affeldt
Ernst Affeldt am 2 Okt. 2018
The comment regarded the last answer

Kategorien

Mehr zu Environment and Settings finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by