Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Breaking Up Large Cell Array into Smaller Cell Arrays
Date: Wed, 22 Aug 2012 02:20:10 +0000 (UTC)
Organization: University of Colorado Denver
Lines: 25
Message-ID: <k11fkq$s9j$1@newscl01ah.mathworks.com>
References: <k1119o$d34$1@newscl01ah.mathworks.com> <k114tj$dif$1@speranza.aioe.org>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-01-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1345602010 28979 172.30.248.46 (22 Aug 2012 02:20:10 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 22 Aug 2012 02:20:10 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2492023
Xref: news.mathworks.com comp.soft-sys.matlab:776931

dpb <none@non.net> wrote in message <k114tj$dif$1@speranza.aioe.org>...
> On 8/21/2012 5:15 PM, Kevin Ellis wrote:
> > Hello,
> >
> > I have a unique problem. Right now I have a large cell array and I want
> > to break that cell array into smaller cell arrays. Here is a portion of
> > the large cell array:
> >
> > C =
> > [1x35 char] [1x39 char] 'ALAMEDA' 'CA'
> > [1x30 char] [1x20 char] 'ALAMEDA' 'CA'
> > [1x30 char] [1x20 char] 'LUDINGTON' 'MI'
> > [1x30 char] [1x20 char] 'LUDINGTON' 'MI'
> >
> > Now, for this test case I want to break this into two smaller cell
> > arrays according to the value in the third column. Here is where it gets
> > difficult for me. I want to take the value 'ALAMEDA', make that a cell
> > array, and fill it with all the entries that have 'ALAMEDA' in the third
> > column....
> 
> Don't do that; use structure w/ named field(s) instead...
> 
> --

I took a look at the help menu for structures. Still confused. I have never used structures before. How will that help me? It seems cell arrays are just as good.