```Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3D vectors into a 3 by 12000 matrix
Date: Thu, 11 Mar 2010 13:45:12 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 29
Message-ID: <hnas57\$76c\$1@fred.mathworks.com>
References: <hnar1e\$osj\$1@fred.mathworks.com> <hnareg\$lcp\$1@fred.mathworks.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1268315112 7372 172.30.248.35 (11 Mar 2010 13:45:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 11 Mar 2010 13:45:12 +0000 (UTC)
Xref: news.mathworks.com comp.soft-sys.matlab:615929

I guessed that it shouldn't be too difficult! It works now, I have tried it before but now it works.

Thank you!

>
> c = [x y z];
>
> Best.
>
>
>
>
> "Anna Lappala" <s0793217@sms.ed.ac.uk> wrote in message <hnar1e\$osj\$1@fred.mathworks.com>...
> > Hello again,
> >
> > My problem is as follows:
> > atom positions in 3D space are given by 3 vectors x, y,z.
> > I can use plot3 to get a plot of my points in 3D.
> > Now, I need a matrix which is composed of x, y and z in a form that can be used for later anaylisis of the matrix and not simply vectors. My matrix 'c' should look like this:
> > x1  y1 z1
> > x2  y2 z2
> > x3  y3 z3
> > :     :   :
> >
> > so that I can use commands such as  sum(c) for instance.
```