Path: news.mathworks.com!not-for-mail
From: "David Doria" <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Get one dimension of a cell array
Date: Mon, 2 Jun 2008 13:36:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <g20t01$qg8$1@fred.mathworks.com>
Reply-To: "David Doria" <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1212413761 27144 172.30.248.37 (2 Jun 2008 13:36:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 2 Jun 2008 13:36:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1105197
Xref: news.mathworks.com comp.soft-sys.matlab:471764



I have this

A{dim1, dim2, dim3};

I want to do:

B = A{1,1,:}; %make B a 1D cell array containing all the
items in A with first index 1 and second index 1.

What happens though is just A{1,1,1} is assigned to B.  Is
there a way to do this?

Thanks,

Dave