|
"Andy" wrote in message <ir63n1$55g$1@newscl01ah.mathworks.com>...
> "Javier " <javsanzperez@gmail.com> wrote in message <ir636l$3pm$1@newscl01ah.mathworks.com>...
> > Hi, I'm going to fill a matrix but I don't have any idea of its final size. Is it efficient to preallocate with zeros (X,X) being X a large number and then delete the zeros that stay? Thank you!
>
> Could you give a little more detail, and possibly some sample code? Depending on the setup, a cell array might make sense. Or if you have R2011a, it might not matter (since they did some optimization in the non-preallocated case). But we need more info than what you've given us.
Hi, thanks for answering. I want to detect elliptic objects and save the coordinates in a matrix. Depending on the images I'll have more or less. Maybe they go from 50 to 500.
Thank you
|