Table of Contents
MAT (Matlab MAT file with data field)
Motivation
The file formats that support reading channel recordings (ACQ and NTT) cannot be saved back to disk. It was a choice of convenience to create a (more or less) compatible format that can be easily saved (and also is available later without the toolbox).
General setup
Whereas most binary formats come with a specific field-by-field description, MAT files are simply loaded and stored in a xff object, with the main addition that for files not prior created with the toolbox, the largest numeric variable will be assigned to the .Data field and all other variables are stored in the .Info sub-struct.
Example
If a MAT file on disk has the following variables:
channels: 1531891×6 doublechannelnames: 1×6 cellchannelinfo: 1×6 struct
Reading this file as an xff object will make the data available as:
.Data- this will be thechannelsvariable.Info- this will be a 1×1 struct with fields.channelnamesand.channelinfo; additionally there will be a.DataFieldNamefield in the.Infoproperty giving the variable name in the MAT-file which.Datarepresents
Upon saving this object, the .Data property will, again, be stored in a variable with the name of .DataFieldName (and the .DataFieldName will be added to the MAT file so as not having to re-detect the data field).
