Path: news.mathworks.com!newsfeed-00.mathworks.com!newscon02.news.prodigy.net!prodigy.net!nx01.iad01.newshosting.com!newshosting.com!69.28.186.77.MISMATCH!hwmpeer03.lga!news.highwinds-media.com!llnews!53ab2750!not-for-mail
From: Peter Boettcher <boettcher@ll.mit.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: plots with for loops..URGENT PLZ
References: <fhkbnf$56v$1@fred.mathworks.com>
Message-ID: <muyzlxe9p6q.fsf@G99-Boettcher.llan.ll.mit.edu>
Organization: MIT Lincoln Laboratory
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux)
Cancel-Lock: sha1:IP5cDwy3HeVH/mlGi9dYquU55iU=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 18
Date: Fri, 16 Nov 2007 10:37:33 -0500
NNTP-Posting-Host: 155.34.163.114
X-Complaints-To: news@ll.mit.edu
X-Trace: llnews 1195227044 155.34.163.114 (Fri, 16 Nov 2007 10:30:44 EST)
NNTP-Posting-Date: Fri, 16 Nov 2007 10:30:44 EST
Xref: news.mathworks.com comp.soft-sys.matlab:437944



"Abinayan Parthiban" <abinayanp@yahoo.co.uk> writes:

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

How do you plot just the first point?  How do you plot just the second
point?  Do those at the command line.

Then, how do you generalize that to plot the i'th point.  Try it out.

Then, wrap that line in a loop that sets i to changing values.

-Peter