unable to exit matlab program
3 views (last 30 days)
In the MATLAB command window, I typed "exit", trying to quit the MATLAB program. But I can't. I got an error message like:
Exiting MATLAB ...
Error using csvwrite (line 47)
Cannot open file c:\Users\Public\Documents\matlabusage\finishindicator.csv.
Error in usagelog (line 54)
csvwrite([localpath '\finishindicator.csv'],[1 2 3]);
Error in finish (line 37)
It looks like a script is called when leaving the MATLAB command window. I don't know how to find it out and change/disable it.
Walter Roberson on 10 May 2021
When you quit() or exit() then finish is automatically run https://www.mathworks.com/help/matlab/ref/quit.html and https://www.mathworks.com/help/matlab/ref/finish.html
to locate the user script that is being invoked.
In the meantime, you could
to create the directory so that the usage information could be written into it. (usagelog is not something provided by Mathworks, by the way.)