Path: news.mathworks.com!not-for-mail
From: "Abinayan Parthiban" <abinayanp@yahoo.co.uk>
Newsgroups: comp.soft-sys.matlab
Subject: plots with for loops..URGENT PLZ
Date: Fri, 16 Nov 2007 15:07:27 +0000 (UTC)
Organization: glasgow university
Lines: 20
Message-ID: <fhkbnf$56v$1@fred.mathworks.com>
Reply-To: "Abinayan Parthiban" <abinayanp@yahoo.co.uk>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1195225647 5343 172.30.248.37 (16 Nov 2007 15:07:27 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 16 Nov 2007 15:07:27 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1184324
Xref: news.mathworks.com comp.soft-sys.matlab:437934



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.