From: Saurabh on
I have a mfile in which I change some parameters and then run it .It generates an output lets say figure A

Now when I change parameters again and run it it also generates a figure

I desire to have the first figure saved and keep on display rather than being overwritten when i run the mfile second time

Any Suggestions ?


From: Branko on
"Saurabh " <saurabhs(a)student.ethz.ch> wrote in message <huq93k$924$1(a)fred.mathworks.com>...
> I have a mfile in which I change some parameters and then run it .It generates an output lets say figure A
>
> Now when I change parameters again and run it it also generates a figure
>
> I desire to have the first figure saved and keep on display rather than being overwritten when i run the mfile second time
>
> Any Suggestions ?
>
>

doc print
doc close
doc figure

Branko
From: Walter Roberson on
Saurabh wrote:
> I have a mfile in which I change some parameters and then run it .It
> generates an output lets say figure A
>
> Now when I change parameters again and run it it also generates a figure
>
> I desire to have the first figure saved and keep on display rather than
> being overwritten when i run the mfile second time
> Any Suggestions ?
>
>

code an explicit figure() call before the first plotting or axes command.