Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
NCTM or The Math Forum.


Math Forum
»
Discussions
»
Software
»
comp.softsys.matlab
Notice: We are no longer accepting new posts, but the forums will continue to be readable.
Topic:
growdata and growdata2  mathworks problem, still ?
Replies:
7
Last Post:
Oct 24, 2012 4:24 AM




Re: growdata and growdata2  mathworks problem, still ?
Posted:
Oct 23, 2012 1:21 PM


> I'm asking, because I have a program and it LOOKS to me, like the > problem still persists. So I think maybe I should use growdata now...
Growing data issue exists in any language (C, C++) not only in MATLAB, and IMO there is no universal way to carry such task smartly.
My own preference is automatically doubling the array each time there is an overflowed assigment then removing the exceed tail at the end. I usually do it on the fly within a loop without calling external function (such as growdata), since calling function inside the loop is always costly.
Bruno



