Borrar filtros
Borrar filtros

How can I get the filename of a running script

18 visualizaciones (últimos 30 días)
Ernst Affeldt
Ernst Affeldt el 25 de Sept. de 2018
Respondida: Ernst Affeldt el 2 de Oct. de 2018
Matlab script

Respuesta aceptada

Dimitris Kalogiros
Dimitris Kalogiros el 25 de Sept. de 2018
Editada: Dimitris Kalogiros el 25 de Sept. de 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.

Más respuestas (1)

Ernst Affeldt
Ernst Affeldt el 2 de Oct. de 2018
The comment regarded the last answer

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by