From: Bill on
I have made a couple programs that automatically graph their results in a figure window (Figure1). When I run a new program, the old figure is deleted and replaced by the new one, which is also called Figure1. I am wondering if there is a way to change the settings so that the old figure window isn't deleted when the new program is run?
From: Walter Roberson on
Bill wrote:
> I have made a couple programs that automatically graph their results in
> a figure window (Figure1). When I run a new program, the old figure is
> deleted and replaced by the new one, which is also called Figure1. I am
> wondering if there is a way to change the settings so that the old
> figure window isn't deleted when the new program is run?

If the programs are explicitly selecting figure 1 then you would need to edit
their code so that it simply called figure() instead of figure(1) . If the
programs use specific figure numbers, then there is no way to tell matlab,
"Oh, when routine A runs, the figure 1 that it refers to should be different
than the figure 1 that routine B refers to, but routine C should use the same
figure 1 as routine B"