Path: news.mathworks.com!newsfeed-00.mathworks.com!nlpi057.nbdc.sbc.com!prodigy.net!nx01.iad01.newshosting.com!newshosting.com!69.28.186.77.MISMATCH!hwmpeer03.lga!news.highwinds-media.com!llnews!53ab2750!not-for-mail
From: Peter Boettcher <boettcher@ll.mit.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3D matrix
References: <g0jmli$ah$1@fred.mathworks.com>
Message-ID: <muy63tdf0wo.fsf@G99-Boettcher.llan.ll.mit.edu>
Organization: MIT Lincoln Laboratory
User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux)
Cancel-Lock: sha1:Ojb1EUjSYm9yyIr7OaBG4Iugs5s=
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Lines: 20
Date: Sat, 17 May 2008 10:41:43 -0400
NNTP-Posting-Host: 155.34.163.114
X-Complaints-To: news@ll.mit.edu
X-Trace: llnews 1211034648 155.34.163.114 (Sat, 17 May 2008 10:30:48 EDT)
NNTP-Posting-Date: Sat, 17 May 2008 10:30:48 EDT
Xref: news.mathworks.com comp.soft-sys.matlab:469005


"mark b." <john.doe.nospam@mathworks.com> writes:

> 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..

Let's reduce this to 2D, and vectors and matrix with size 4.  So I have
two 4-element vectors: [1 2 3 4] and [5 6 7 8].  I want a 4x4 matrix.
Write out the 4x4 matrix which describes where the above numbers go:

[? ? ? ?]
[? ? ? ?]
[? ? ? ?]
[? ? ? ?]

Then explain the extension to 3D.

-Peter