I am trying to write a program that will be easily potable from machine to machine, and read and write to various subfolders on that machine. To do this I need to know where the main function testing.m is located.
whereIsTheFile = mfilename %mfilename('fullpath') -> Error: Too many inputs to function mfilename
Call the file from the command window:
Empty array 1x0
in Matlab you can pass mfilename an argument: mfilename('fullpath') but that does not work in freemat
Am i making a mistake? is there a workaround?