Is it possible to determine within a function the location of that function?

1 Ansicht (letzte 30 Tage)
Is it possible to determine the location (folder consisting that function) of a used function within the function?
I dont want to change the current folder just know the function folder within the function.

Akzeptierte Antwort

Stephen23
Stephen23 am 27 Mai 2020
Bearbeitet: Stephen23 am 27 Mai 2020
p = mfilename('fullpath')
[p,n] = fileparts(p)

Weitere Antworten (0)

Kategorien

Mehr zu Modeling finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by