Filter löschen
Filter löschen

How I can find the directory the script or function running now is

3 Ansichten (letzte 30 Tage)
Yona
Yona am 20 Mär. 2017
Kommentiert: Yona am 20 Mär. 2017
I am running a script and i want to know the path it is with out using the script name.
The path is in 'matlabpath' so by using pwd i can get a different path. It is exist a way to know the directory of the running script or function(In running i mean that i what to use the command in the script to get the answer)?

Akzeptierte Antwort

Adam
Adam am 20 Mär. 2017
Bearbeitet: Adam am 20 Mär. 2017
doc mfilename

Weitere Antworten (0)

Kategorien

Mehr zu Search Path finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by