I have an m file which creates an excel file using xlswrite. If I do not specify the the folder for the xls to be output to, the default is the users folder. I would prefer that it goes to the same folder as the m file. Is there a way to generalize this without explicitly entering the m file location? I plan on distributing this m file and not everyone will keep their m files in the same folder.
I have an m file which creates an excel file using xlswrite . If
Share
To get the path where running m-file is stored, check out: