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 ]
Bruno Luong

Posts: 9,039
Registered: 7/26/08
Re: Problem with memory usage (R2009a)
Posted: Oct 21, 2009 8:15 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Outspan <borghiborghi@gmail.com> wrote in message <720c9267-219b-4960-b3cf-305240212df8@o36g2000vbl.googlegroups.com>...

> So I should use a matrix instead?


> Obviously that's going to save
> space, but the code is going to get ugly if I ever have to load
> different kinds of data for the same record.
> I just don't understand
> why structs have to take up that much space.

Because that the tradeoff to be able to build a composite structure like this:

s = struct('f', {pi 'toto' @(x) x struct('nest',3)});


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

[Privacy Policy] [Terms of Use]

© The Math Forum 1994-2015. All Rights Reserved.