Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: initialising a 3D matrix
Date: Mon, 9 Nov 2009 02:31:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 14
Message-ID: <hd7ut6$hir$1@fred.mathworks.com>
References: <hd7rrl$b8c$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1257733862 18011 172.30.248.38 (9 Nov 2009 02:31:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 9 Nov 2009 02:31:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1725513
Xref: news.mathworks.com comp.soft-sys.matlab:583454


Thank you for this information.It was really helpful.

"Madhumitha Iyer" <pyarsa_madhu@yahoo.co.in> wrote in message <hd7rrl$b8c$1@fred.mathworks.com>...
> [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