The Math Forum

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.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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 ]

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

On Oct 20, 1:53 pm, "Bruno Luong" <>
> Outspan <> wrote in message <>...
> > 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]);

I wrote earlier that I had 50K lines, but I really have 500K (so the
parameters in repmat are correct). Is there a way to do this and use
less memory? How come the .mat file is only 10MB but the script is
using this much memory?

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

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.