"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