Can not exit Matlab

80 次查看(过去 30 天)
Piotr Tomaszewski
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 个评论
John D'Errico
John D'Errico 2024-3-19
Welcome to the Hotel California... ;) Sorry. Hotel MATLAB.

请先登录,再进行评论。

回答(1 个)

Rishav
Rishav 2023-10-12
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 个评论
jaures
jaures 2024-3-19
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
Steven Lord 2024-3-19
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
'finish' not found.
If that doesn't reveal anything, make sure you haven't defined your own exit or quit functions.
which -all exit
built-in (/MATLAB/toolbox/matlab/general/exit) exit is a Java method % java.lang.System method
which -all quit
built-in (/MATLAB/toolbox/matlab/general/quit)

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Get Started with MATLAB 的更多信息

标签

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by