How can I get the filename of a running script
22 views (last 30 days)
Show older comments
Accepted Answer
Dimitris Kalogiros
on 25 Sep 2018
Edited: Dimitris Kalogiros
on 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.
0 Comments
More Answers (1)
See Also
Categories
Find more on Environment and Settings in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!