I use an optimization algorithm to find an optimal shape for a certain functional. I made the program show me the current figure at every iteration to see where everything is going. The problem is that I cannot do anything while the program works (and the program takes 5-10 minutes to finish), because the figure keeps popping up on top, and if I am writing something, for example, the window focus changes on the matlab figure.
It is possible to keep the matlab figure from being on top when the figure changes? For example I use a dual monitor setup, and moved the figure to the second monitor. Can the figure change without changing the focus from the current window I work in?