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: Problem with memory usage (R2009a)
Replies: 11   Last Post: Oct 21, 2009 10:20 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
brijendra kumar

Posts: 30
Registered: 9/22/09
Re: Problem with memory usage (R2009a)
Posted: Oct 20, 2009 8:28 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <hbk8au$duj$1@fred.mathworks.com>...
> Outspan <borghiborghi@gmail.com> wrote in message <32cf3331-9441-4f73-9b6f-f29d3fbf624f@s6g2000vbp.googlegroups.com>...
> > Hi all,
> >
> >... I also use up 300MB of
> > memory, and I don't understand why.

>
> Because of the REPMAT instruction.
>

> >
> > bars = struct('date', [], 'time', [], 'open', [], 'high', [], 'low',
> > [], 'close', [], 'volume', []);
> > bars = repmat(bars, [1 500000]);

>
> Bruno


i think memory can be reduce by avoiding while loop because while loop stores all data till end .....
just try once...



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.