| MATLAB Central > MATLAB Newsreader > Preallocating structures |
|
|
|
I'm trying to preallocate structures, but I can't find any information on how to do this. |
|
"Kian " <kian.torab@utah.edu> wrote in message <gpovld$r76$1@fred.mathworks.com>... |
|
"Kian " <kian.torab@utah.edu> wrote in message <gpovld$r76$1@fred.mathworks.com>... |
|
myStructure.Channel(96).Unit(6).Trial(50) = 0; did not work. It only created a myStructure with 96 channels, but each channel does not have 6 units and 50 trials in them. |
|
UC(1:5)={zeros(100,1)}; |
|
"Kian" |
|
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <gpp2fl$eb6$1@fred.mathworks.com>... |
|
On Mar 18, 10:10=A0am, "Kian " <kian.to...@utah.edu> wrote: |
|
TideMan |
|
TideMan <mulgor@gmail.com> wrote in message <43d7b890-073d-44cd-943b-f0a697aa53fd@d36g2000prf.googlegroups.com>... |
|
On Mar 18, 10:36=A0am, "us " <u...@neurol.unizh.ch> wrote: |
|
Or if you prefer a condensed horrible single statement: |
|
"Bruno Luong" |
|
TideMan <mulgor@gmail.com> wrote in message <2d618045-1f5b-496b-befb-10e3c8fe19bb@f1g2000prb.googlegroups.com>... |
|
"us " <us@neurol.unizh.ch> wrote in message <gpp7b9$n5f$1@fred.mathworks.com>... |
|
Yes, I wanted to know how to preallocate for performance purposes. It does make a huge difference. Thanks everyone for your quick responses. |
|
"Bruno Luong" |
|
This is a very informative thread. |
|
Siyi <Mr.Siyi.Deng@gmail.com> wrote in message <437ce7d1-b870-4b4a-9ba7-6ca32cf562b0@v23g2000pro.googlegroups.com>... |
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.
| Tag Activity for This Thread | ||
|---|---|---|
| Tag | Applied By | Date/Time |
| repmat | us | 17 Mar, 2009 16:55:06 |
| code | us | 17 Mar, 2009 16:55:06 |
| struct | us | 17 Mar, 2009 16:55:06 |
| structure struc... | Kian | 17 Mar, 2009 16:05:07 |
Contact us at files@mathworks.com
