Path: news.mathworks.com!not-for-mail
From: "John D'Errico" <woodchips@rochester.rr.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3D matrix
Date: Sat, 17 May 2008 11:45:04 +0000 (UTC)
Organization: John D'Errico (1-3LEW5R)
Lines: 35
Message-ID: <g0mgg0$8b$1@fred.mathworks.com>
References: <g0jmli$ah$1@fred.mathworks.com> <g0kinn$5l7$1@canopus.cc.umanitoba.ca> <g0m3dq$9tu$1@fred.mathworks.com> <g0m449$nsj$1@fred.mathworks.com> <g0m79j$ack$1@fred.mathworks.com> <g0m8d6$so0$1@fred.mathworks.com>
Reply-To: "John D'Errico" <woodchips@rochester.rr.com>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1211024704 267 172.30.248.38 (17 May 2008 11:45:04 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 17 May 2008 11:45:04 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 869215
Xref: news.mathworks.com comp.soft-sys.matlab:468986


"mark b." <john.doe.nospam@mathworks.com> wrote in message 
<g0m8d6$so0$1@fred.mathworks.com>...
> i know i can make make matrix = zeros(97,97,97) and then 
> i'll have 3d matrix size 97x97x97.
> but then i want to put inside of it a,b,c, where each is 
> the size of 97. so then i'll still have matrix with size
> 97x97x97 but with a,b and c inside..

(John takes a quiet moment to pound his
head against a brick wall. While this does
not directly relieve the pain he feels in his
head, it distracts him. It seems better now.)

But you still have not said what is in this
matrix.

A simple array  in Matlab is composed of
scalar elements, each of which is a SINGLE
number or character. Those elements may
be the standard double precision numbers,
or they may be singles, uint8s, etc.

So it makes no sense that you want to put
a, b, and c inside this array. There are other
classes of variables in Matlab, such as cell
arrays or structures. And there are higher
dimensional arrays. Do you perhaps wish to
create a 4 dimensional array?

So again, what will be inside each element
of this array? Please explain yourself, as my
crystal ball is always foggy at this time of
day.

John