Find location of current m-file in MATLAB May 11, 2023 by Tarik mfilename or better mfilename('fullpath')