Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: growdata and growdata2 - mathworks problem, still ?
Replies: 7   Last Post: Oct 24, 2012 4:24 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
text-dude

Posts: 74
Registered: 4/30/08
Re: growdata and growdata2 - mathworks problem, still ?
Posted: Oct 24, 2012 4:24 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2012-10-23 19:21, Bruno Luong wrote:
>> 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.


Growdata is a smart way, right?

> 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.


I think I'll begin to use growdata...





Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.