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: how to assign multiple structure elements at once
Replies: 5   Last Post: Nov 17, 2012 10:01 AM

Advanced Search

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

Posts: 2
Registered: 11/16/12
Re: how to assign multiple structure elements at once
Posted: Nov 17, 2012 3:38 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> It sounds preferable to use a 10xN matrix where N is the number of sampling times to record the data and put it in NaN at hours where a particular bus is not working. Not only is this much easier to index/access, but notice also that that would ensure that your samples are always synchronized if a bus breaks for some period of samples and then starts working again. That's much harder to do if you simply don't record the activity of broken buses.

Thanks for your help. It looks like it is better to change the whole data structure to make it easier and faster the recording process. But it would be nice to have this functionality to simultenously record a data to structure array like the way I was trying to implement. Because in my real case I have thousands of buses and tens of fields to fill in data, over time as the matrices become huge the memory fails to process that data.

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.