Effacer les filtres
Effacer les filtres

How can I get the filename of a running script

18 vues (au cours des 30 derniers jours)
Ernst Affeldt
Ernst Affeldt le 25 Sep 2018
Matlab script

Réponse acceptée

Dimitris Kalogiros
Dimitris Kalogiros le 25 Sep 2018
Modifié(e) : Dimitris Kalogiros le 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.

Plus de réponses (1)

Ernst Affeldt
Ernst Affeldt le 2 Oct 2018
The comment regarded the last answer

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by