How can I get the filename of a running script

조회 수: 22 (최근 30일)
Ernst Affeldt
Ernst Affeldt 2018년 9월 25일
답변: Ernst Affeldt 2018년 10월 2일
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에서 Whos에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by