As mentioned in this question, one can open a new figure that is fit to the screen using the command
figure('units','normalized','outerposition',[0 0 1 1])
Assume now that some script has generated figures figure(1)
, figure(2)
and figure(3)
and you want to programmatically select figure(2)
and fit it to the screen.
A possibility would be to use the mentioned command instead of figure
inside the script that generates the figures, but assume that you cannot (or do not want to) modify this script. You really want to select one of the already existing figures. How would you do that?