Find location of current m-file in MATLAB

mfilename or better mfilename('fullpath')

Leave a Comment