Path: news.mathworks.com!not-for-mail
From: "Steven_Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: plot?! help please
Date: Thu, 6 Dec 2012 13:10:59 -0500
Organization: MathWorks
Lines: 23
Message-ID: <k9qn3j$ftm$1@newscl01ah.mathworks.com>
References: <k9qmbg$d1s$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: ah-slord.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain;
	format=flowed;
	charset="UTF-8";
	reply-type=response
Content-Transfer-Encoding: 7bit
X-Trace: newscl01ah.mathworks.com 1354817459 16310 172.28.9.169 (6 Dec 2012 18:10:59 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 6 Dec 2012 18:10:59 +0000 (UTC)
In-Reply-To: <k9qmbg$d1s$1@newscl01ah.mathworks.com>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Xref: news.mathworks.com comp.soft-sys.matlab:784341



"Iris " <my.velvet.faerie.tale@gmail.com> wrote in message 
news:k9qmbg$d1s$1@newscl01ah.mathworks.com...
> Hello! Another question! Imagine that i have N particles and I want to 
> plot them, so I do something like this:
>
> plot3(X(1, Y, Z1, ':k', X2, Y2, Z2, ':k', X3, Y3, Z3, ':k'.............., 
> XN, YN, ZN, ':k');
>
> how can I do this without having to write the N coordinates in the plot?

If you don't want them connected by lines, SCATTER3.

If you do want them connected by lines, store them in matrices not 
individual vectors.

-- 
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com