From: "Steven_Lord" <>
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$>
References: <k9qmbg$d1s$>
Mime-Version: 1.0
Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
X-Trace: 1354817459 16310 (6 Dec 2012 18:10:59 GMT)
NNTP-Posting-Date: Thu, 6 Dec 2012 18:10:59 +0000 (UTC)
In-Reply-To: <k9qmbg$d1s$>
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: comp.soft-sys.matlab:784341

"Iris " <> wrote in message 
> 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
To contact Technical Support use the Contact Us link on