Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: initialising a 3D matrix
Date: Mon, 9 Nov 2009 01:39:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <hd7rrl$b8c$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1257730741 11532 172.30.248.35 (9 Nov 2009 01:39:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 01:39:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1725513
Xref: news.mathworks.com comp.soft-sys.matlab:583448


[0 0;0 1;1 0;1 1]
ans =
     0     0
     0     1
     1     0
     1     1
>> size(ans)
ans =
     4     2
Hellp all,
   From the above code we see that the matrix defined is a 4*2 matrix.Now if I want to extend this to a 4*2*50 matrix and initialise it with whatever values I want how can I do it in matlab?Pls tell me.thanx