From: Kenneth Galea on
Hi everyone.

I need to ask something about the hold on and hold off functions in Matlab!!!
I have the following plot: http://dl.dropbox.com/u/5800838/plot1.jpg
Which is made of red and blue lines.

Now since this plot has already a large number of lines drawn I plotted a new figure since I need to draw other lines and but keep only the RED lines from the previous plot. When I draw this other figure using hold on this is the result:
http://dl.dropbox.com/u/5800838/plot2.jpg

How can I do get the red lines ONLY also on the second plot using hold on and hold off ??

Regards
Kenneth
From: Sean on
"Kenneth Galea" <k.galea(a)hotmail.com> wrote in message <hpcau3$qhi$1(a)fred.mathworks.com>...
> Hi everyone.
>
> I need to ask something about the hold on and hold off functions in Matlab!!!
> I have the following plot: http://dl.dropbox.com/u/5800838/plot1.jpg
> Which is made of red and blue lines.
>
> Now since this plot has already a large number of lines drawn I plotted a new figure since I need to draw other lines and but keep only the RED lines from the previous plot. When I draw this other figure using hold on this is the result:
> http://dl.dropbox.com/u/5800838/plot2.jpg
>
> How can I do get the red lines ONLY also on the second plot using hold on and hold off ??

figure;
hold on
plot red
plot blue

figure;
hold on
plot red
plot other