I have two monitors, I prefer to write code on primary monitor and view figures on secondary monitor. I have managed to make the newly generated figure display on secodary screen by setting properties of the root object in startup.m.
set(0, 'DefaultFigurePosition', [-1120, 538, 560, 420]);
However, when I double-click a figure that was previously saved in .fig format in the file explorer, the figure would display on primary monoitor.
Is there any way can avoid this? Or, can I move all the figures on primary monitor to secondary monitor with their relative positions unchanged?