Can not exit Matlab
177 views (last 30 days)
Show older comments
Hi, I can not exit matlab 2021a no matter what I do. The x button in top right corner doesn't work, the close in file menu doesn't work and the exit command also doesn't work. The only way to close matlab is to kill it in task manager. For reference matlab still works when I try to close it it just doesnt want to be closed.
The problem doesn't occur when I open matlab and try to close it but whenever I open any project etc. when I try to close Matlab everything is getting closed except main window.
1 Comment
Answers (1)
Rishav
on 12 Oct 2023
Hi Piotr,
I understand that you are trying to exit MATLAB R2021a by using the close button in the top right corner and you are unable to do so.
This is not an expected behavior, so you can try reinstalling MATLAB or checking if the issue only occurs when working on specific projects or files. If yes, then try recreating the project or opening those files one by one to see if you can identify any specific file causing the problem.
Thank you,
Rishav Saha
2 Comments
jaures
on 19 Mar 2024
I have this same issue.
I installed Matlab 2011a 32 bits on a windows 11 computer and was not able to close it using the close button in the top right.
So I uninstaled 2011a 32 bits and installed 2011a 64bits and 2015b 64 bits.
2015b 64bits can close normally
2011a 64bits has the same issue as the 32 bits version. I cannoit close it using the close button in the top right.
The only way I can close it is by using the task manager.
Please, help.
Steven Lord
on 19 Mar 2024
Let's check that you don't have a finish.m file that's preventing MATLAB from closing. It could be in the current directory for the two release R2011a installations, but that directory could not be the current directory or on the MATLAB search path for the installation of release R2015b. What does this command show?
which -all finish
If that doesn't reveal anything, make sure you haven't defined your own exit or quit functions.
which -all exit
which -all quit
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!