unable to exit matlab program

9 Ansichten (letzte 30 Tage)
Rui Zhang
Rui Zhang am 10 Mai 2021
Beantwortet: Walter Roberson am 10 Mai 2021
In the MATLAB command window, I typed "exit", trying to quit the MATLAB program. But I can't. I got an error message like:
>> exit
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)
usagelog('finish');
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.
Thanks.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 10 Mai 2021
Use
which finish
to locate the user script that is being invoked.
In the meantime, you could
mkdir('c:\Users\Public\Documents\matlabusage')
to create the directory so that the usage information could be written into it. (usagelog is not something provided by Mathworks, by the way.)

Weitere Antworten (0)

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by