How can I get the filename of a running script

13 visualizzazioni (ultimi 30 giorni)
Matlab script

Risposta accettata

Dimitris Kalogiros
Dimitris Kalogiros il 25 Set 2018
Modificato: Dimitris Kalogiros il 25 Set 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.

Più risposte (1)

Ernst Affeldt
Ernst Affeldt il 2 Ott 2018
The comment regarded the last answer

Categorie

Scopri di più su MATLAB Compiler in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by