I'm running Matlab R2019a on Mac Mojave 10.14.5. These are long jobs that take several hours. After some time (a couple hours or so) the computer resources given to the user dwindles down to nothing. Some of the posts I've seen with slowness issues say to disable MagNet. What is MagNet and how do I disable it?
Magnet is a window manager for Mac that keeps the workspace organized. If you have Magnet installed, you can choose to ignore the current application from menu bar icon of Magnet. Choose "Ignore MATLAB" to disable Magnet for MATLAB.