Note that there are some explanatory texts on larger screens.

plurals
  1. POis it possible to do 'stateless' programming in matlab / how to avoid checking data integrity?
    primarykey
    data
    text
    <p>My day to day work flow is something like this:</p> <ul> <li>acquire raw data (~50GB)</li> <li>parse raw data timing-information and build raw data structure (struct / object) from timing-information (what event occurred when, in which order, in what file, what other events occurred at the same time, etc ...)</li> <li>load only the necessary parts of raw data into struct / object as selected from previous timing information (basically this is a way to sub-select data)</li> <li>for each raw data chunk, calculate / extract certain metrics like RMS of signal, events where data > threshold, d' / z-score, and save them with struct / object</li> <li>given the the previously calculated metrics, load some raw-data of same time episodes from different data channel and compare certain things, etc ...</li> <li>visualize results x, y, z</li> </ul> <p>I have two ways of dealing with this kind of data / workflow:</p> <ol> <li>use struct()</li> <li>use objects</li> </ol> <p>There are certain advantages / disadvantages to both cases:</p> <ol> <li><p>struct:</p> <ul> <li>can add properties / fields on the fly</li> <li>have to check for state of struct every single time that I pass a struct to a function</li> <li>keep re-writing certain functions because every time that I change the struct slightly I a) tend to forget that a function already exists for it or b) I write a new version that handles a special case of the struct state. </li> </ul></li> <li><p>objects:</p> <ul> <li>using 'get.property()' methods, I can check the state of a property before it get's accessed inside a function / method -> allows to do data consistency checks.</li> <li>I always know which methods work with my object, since they are part of the object definition.</li> <li>need to <code>clear classes</code> every time I add a new property or method - very annoying!</li> </ul></li> </ol> <p>Now my question is: how do other people deal with this kind of situation? how do you organize your data? in structs? in objects? how do you handle state checks? is there a way to do 'stateless' programming in matlab?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload