|
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.
>
>
|