When closing the figure, Matlab pending will appear. Please tell me how to fix it? Thx

12 次查看(过去 30 天)
When closing the figure, Matlab pending will appear. My computer is MacBook ai r with apple silicon M2 chip, macOS sonoma 14.1, and matlab is the latest version. Please tell me how to fix it? Thx

回答(1 个)

Sanchari
Sanchari 2023-11-15
Hello,
I understand that you are facing an issue “MATLAB pending” while trying to close a figure.
This seems to be a common problem among macOS Sonoma users. Please follow the steps below:
  1. Check System Requirements: Please go through the system requirements to support your MATLAB version. You can find them here: https://www.mathworks.com/support/requirements/apple-silicon.html
  2. Focus on another window: If the problem is just regarding closing figures (via the X in the figure window), then the quickest workaround is to make sure that the window focus is not on the window when you are closing (i.e., click on literally any other window), before you hit the X.
  3. Use “close” function: You can also use the “closefunction command to close figures instead of the X. To close the figure from the MATLAB command window, type “close” to close the current figure or “close(figureHandle)” to close a specific figure by its handle. For multiple figures, use “close(figureHandle1, figureHandle2, figureHandle3,…)” instead. To close all figures, use “close all”.
You can further find more about this in the following MATLAB Answer discussion:
  1. https://www.mathworks.com/matlabcentral/answers/2027964-matlab-crash-on-sonoma-macos-14-0?s_tid=srchtitle
  2. https://www.mathworks.com/matlabcentral/answers/1808195-matlab-r2022a-freezes-on-macos-monterey-12-5-1-when-closing-a-figure#answer_1324680
Hope this helps!

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品


版本

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by