Welcome! Log In Create A New Profile

Advanced

Example code for importing .bhv2 files into matlab?

Posted by jamesbutler01 
Example code for importing .bhv2 files into matlab?
October 30, 2019 10:30AM
Is there anywhere I can find an example script or instructions to import a .bhv2 file generated by ML into Matlab to be used for analysis? Ideally to end up with a [n_Trials x n_EventCodes] matrix.

I have found this, but I am still a loss as to where to even start with the process. Example import scripts to other languages or more comprehensible data structures would also suffice.

Thanks
Re: Example code for importing .bhv2 files into matlab?
October 30, 2019 11:04AM
Re: Example code for importing .bhv2 files into matlab?
October 30, 2019 11:19AM
This is perfect, thank you. Apologies for not finding it myself.

The National Institute of Mental Health (NIMH) is part of the National Institutes of Health (NIH), a component of the U.S. Department of Health and Human Services.