- 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
- 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.
- Use “close” function: You can also use the “close” function 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”.
- https://www.mathworks.com/matlabcentral/answers/2027964-matlab-crash-on-sonoma-macos-14-0?s_tid=srchtitle
- https://www.mathworks.com/matlabcentral/answers/1808195-matlab-r2022a-freezes-on-macos-monterey-12-5-1-when-closing-a-figure#answer_1324680