Clear Filters
Clear Filters

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

12 views (last 30 days)
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

Answers (1)

Sanchari
Sanchari on 15 Nov 2023
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!

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Products


Release

R2023b

Community Treasure Hunt

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

Start Hunting!