This seems like a very specific weird question that I can't find an answer to anywhere else.
I am making lots of figures in MATLAB. Lots. Hundreds. I plot each figure and then save it as a png to look at later. I am doing this in a for loop so each figure pops up for one second, saves, and then closes. On a Windows machine, I could start the for loop and then go work on other things in other programs while the MATLAB program ran. However, I am now working on a Mac and every time a new figure is opened in MATLAB, my computer jumps back to MATLAB as the active window. So it's impossible to do anything (e.g. use Safari, Preview, or any other program) while the script is running because every 1-2 seconds, MATLAB pops back up and I have to navigate back to whatever program I was using. I've tried minimizing MATLAB, I've even tried creating a new desktop in Mission Control. But it just keeps jumping back to MATLAB every time a figure opens.
I'm not sure if this is a Mac question or a MATLAB question, but I couldn't find any answers on any Mac help likely because few Mac users are opening and closing hundreds of windows.
Any help is appreciated.
I am using MATLAB 2021a on a 2019 13-in MacBook Pro with Big Sur 11.3.