Unpacking data

Hi Chris,

Can you please outline the current recommended procedures for importing/unpacking *.mwk files in Matlab for offline analysis? I’m interested in browsing all the events in a data file as well as grabbing specific events.

Thanks,

Nicole

Hi Nicole,

I’ve attached a MATLAB function (printEvents) that demonstrates how to unpack a data file. It takes the name of the file and an event name (e.g. a variable name or a system event like #announceStimulus) and prints out all matching events. If you omit the event name, it prints out all events.

Note that when you open a data file for the first time, it gets indexed for efficient searching. For large data files, the indexing can take a long time (e.g. several minutes). However, this only happens once per data file.

If you need more info, please let me know!

Chris

Attachment: printEvents.m (992 Bytes)