Path: news.mathworks.com!not-for-mail
From: "Abinayan Parthiban" <abinayanp@yahoo.co.uk>
Newsgroups: comp.soft-sys.matlab
Subject: Re: plots with for loops..URGENT PLZ
Date: Fri, 16 Nov 2007 15:35:47 +0000 (UTC)
Organization: glasgow university
Lines: 59
Message-ID: <fhkdcj$215$1@fred.mathworks.com>
References: <fhkbnf$56v$1@fred.mathworks.com> <fhkc6a$brv$1@fred.mathworks.com>
Reply-To: "Abinayan Parthiban" <abinayanp@yahoo.co.uk>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1195227347 2085 172.30.248.35 (16 Nov 2007 15:35:47 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 Nov 2007 15:35:47 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1184324
Xref: news.mathworks.com comp.soft-sys.matlab:437943



oh.. will look for it in the help.. thanks very much for 
that..
Now if I wanted to plot each coordinates one at a time, how 
do i use the for loop for that? 
X=[1;2;3;4;5;6;7],Y=[1;3;5;6;8;7;9]
 those are the coordinates.
Thanks.

Abi.








"Stuart Kozola" <skozola@mathworks.com> wrote in message 
<fhkc6a$brv$1@fred.mathworks.com>...
> Try:
> 
> help pause
> 
> 'pause(2)' will pause for two seconds.  You should also 
look at 'drawnow' if 
> your plot does not refresh as fast as you'd hoped.
> 
> Stu
> 
> 
> "Abinayan Parthiban" <abinayanp@yahoo.co.uk> wrote in 
message 
> news:fhkbnf$56v$1@fred.mathworks.com...
> > hi,
> > Im starting to learn matlab,and I  have a problem.
> > Basically, I have 2 column matrices,
> > X=[1;2;3;4;5;6;7],Y=[1;3;5;6;8;7;9]..
> > I want to plot them for each coordinates, but I want 
them
> > to plot each coordinate in the graph after a 2 second
> > interval. So, the plot looks something like this,
> >
> >      |                                  |
> >      |          ---> after 2 seconds--> |     .(1,3)
> >      |  .(1,1)                          |
> >      |_______                           |_______
> >
> > And so, on.. It should be on the same plot, so that it
> > looks like an animation.
> > I was trying to use the basic plot(x,y) with a for loop,
> > and trying to find some kind of a delay function, so 
that
> > it delays the plot by 2 secs. Can anyone please help me 
on
> > this programme. Thanks.
> > Abi. 
> 
>