Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Preallocating structures
Date: Tue, 17 Mar 2009 21:10:03 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 10
Message-ID: <gpp3jb$1rq$1@fred.mathworks.com>
References: <gpovld$r76$1@fred.mathworks.com> <gpp0p9$glf$1@fred.mathworks.com> <gpp1n9$lfi$1@fred.mathworks.com> <gpp2fl$eb6$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1237324203 1914 172.30.248.37 (17 Mar 2009 21:10:03 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 Mar 2009 21:10:03 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1652144
Xref: news.mathworks.com comp.soft-sys.matlab:525663

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gpp2fl$eb6$1@fred.mathworks.com>...
> UC(1:5)={zeros(100,1)};
> CC(1:96)={struct('Trial', UC)};
> myStructure.Channel=struct('Unit',CC);
> 
> myStructure.Channel(96).Unit(5).Trial(98)=pi
> 
> % Bruno

That's it! Thanks Bruno!