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

folderfunctionpath

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.

Best Answer

p = mfilename('fullpath')
[p,n] = fileparts(p)
Related Question