In most cases the issue seems to initiate from the simultaneous launching of MATLAB Editor at startup. It has been reported that this behavior can cause similar issues. Try the following troubleshooting steps, that disables the MATLAB editor from launching at startup and have successfully resolved the issue in the majority of the cases:
- Initiate MATLAB with -nodesktop flag
- Run the commands:
s.matlab.editor.InitializeAtStartup.PersonalValue = 0;
3. Quit -nodesktop MATLAB and launch desktop MATLAB.