|
Is it helpful to preallocate a containers.Map array ? If so, how do you preallocate it? Thanks Matt
"Kwok Chong" <Kwok.chong@mathworks.co.uk> wrote in message <h6u45s$ppm$1@fred.mathworks.com>...
> Hi Danny,
>
> Currently, at the time of writing this reply, there is no way to do this. The workaround is to construct with dummy variables of the right type, and them remove the dummy entries.
>
> Please see Technical Solution # 1-71KD5H for more details:
> http://www.mathworks.com/support/solutions/en/data/1-71KD5H/
>
> Kwok
>
> "Danny Shevitz" <shevitz@lanl.gov> wrote in message <h3iqir$p2d$1@fred.mathworks.com>...
> > Howdy,
> >
> > this is real simple but I can't figure it out. How do I construct an empty
> > containers.Map with integer KeyType. The default is char, and Matlab autodetects
> > numeric types if they are given as keys, but I want to start with an empty map.
> >
> > thanks,
> > Danny
|