Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: matrix with matrix for each element
Date: Tue, 15 Jul 2008 13:42:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 13
Message-ID: <g5i9f9$eoo$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 1216129321 15128 172.30.248.38 (15 Jul 2008 13:42:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 15 Jul 2008 13:42:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:479488



Hi, I am trying to create a matrix which has a matrix as
each element e.g.:

h=[1:3]'
h(1)=[1,2;3,4]

I then get this message which is understandable:
???  In an assignment  A(I) = B, the number of elements in B and
 I must be the same.


Is there a way to do this though?
Thanks in advance.