Path: news.mathworks.com!not-for-mail
From: "Bruno Luong" <b.luong@fogale.findmycountry>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3D array to struct?
Date: Wed, 4 Nov 2009 11:29:02 +0000 (UTC)
Organization: FOGALE nanotech
Lines: 6
Message-ID: <hcrohu$slc$1@fred.mathworks.com>
References: <hcrko2$5vd$1@fred.mathworks.com>
Reply-To: "Bruno Luong" <b.luong@fogale.findmycountry>
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 1257334142 29356 172.30.248.35 (4 Nov 2009 11:29:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 4 Nov 2009 11:29:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 390839
Xref: news.mathworks.com comp.soft-sys.matlab:582327


% Your matrix
A=rand(2,2,3)

s=struct('cdata',squeeze(num2cell(A,[1 2])))

% Bruno