Path: news.mathworks.com!not-for-mail
From: "mark b." <john.doe.nospam@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3D matrix
Date: Sat, 17 May 2008 08:14:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 12
Message-ID: <g0m449$nsj$1@fred.mathworks.com>
References: <g0jmli$ah$1@fred.mathworks.com> <g0kinn$5l7$1@canopus.cc.umanitoba.ca> <g0m3dq$9tu$1@fred.mathworks.com>
Reply-To: "mark b." <john.doe.nospam@mathworks.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1211012041 24467 172.30.248.37 (17 May 2008 08:14:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 17 May 2008 08:14:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1286828
Xref: news.mathworks.com comp.soft-sys.matlab:468979


sorry, i took a look once again and it's not exacly what i 
wanted.
consider:

a=1:5;
b=2:6;
c=3:7;
[ta tb tc] = ndgrid(a,b,c);
output = cat(3,ta,tb,tc);

then size(output) will be 5x5x15
and i need the matrix to be 5x5x5 (axbxc)