Macbook pro M1 max and MATLAB GUI problem

Viewed 21

All the functions starting with ui (uigetfile, uigetdir, etc...) fail to work (and return 0). They do not even pop up a Window to select files.

This happened on OSX Monterey 12.3 with MATLAB 2019b, 2020b, 2021b, 2022b.

1 Answers

I realized that when the MATLAB process hangs after a ui command, a new process is created for analytics and improvement. And this process apparently crashed. I tried to kill it but it did not help. I tried to disable in the preferences > Security > Privacy tab but was not able to (the GUI was not populating).

Eventually I rebooted and was able to disable Analytics and Improvements. After that MATLAB behaved fine.

Related