help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: plot in a for loop


From: Doug Stewart
Subject: Re: plot in a for loop
Date: Wed, 2 Mar 2011 09:43:38 -0500



On Wed, Mar 2, 2011 at 8:35 AM, Mon <address@hidden> wrote:
Morning all,
I know this has been addressed in the past, but I cannot find the relavent
post in the archive.

I am tring to plot some data in a for loop, but once the first iteration
prints, the plot window has the focus and none of the other iterations
print.

figure
#hold on
for i=1:size(x,1)
plot(x{i},y{i})
#drawnow
endfor

"drawnow" doesn't get it, nor does "hold on"

WinXP
Version 3.2.3


figure(1)
for i=1:size(x,1)
plot(x{i},y{i})
hold on
endfor


This might be what you want.
Why not do this?
figure(1)
plot(x,y)

Doug


reply via email to

[Prev in Thread] Current Thread [Next in Thread]