xdf-modules / xdf-Matlab

Matlab code for working with xdf files.
BSD 2-Clause "Simplified" License
11 stars 14 forks source link

Overview

This is a MATLAB importer for .xdf files. xdf files are likely to have been created by LabRecorder, the default file recorder for use with LabStreamingLayer. LabRecorder records a collection of streams, including all their data (time-series / markers, meta-data) into a single XDF file. The XDF format (Extensible Data Format) is a general-purpose format for time series and their meta-data that was jointly developed with LSL to ensure compatibility, see here.

Usage

After a session has been recorded to disk using the LabRecorder or any other compatible recording application, it can be imported into MATLAB using the functions in this folder.

Note that EEGLAB plugins are structured so the EEGLAB (/BCILAB/MoBILAB) plugin files are in the top level (i.e. the directory containing this readme) and the actual import function is load_xdf in the xdf subfolder.

To use load_xdf directly:

addpath('C:\\path\\to\\xdf_repo\\Matlab\\xdf')

streams = load_xdf('your_file_name.xdf')

Documentation

As usual, in MATLAB, to get the documentation of the function, type help load_xdf or doc load_xdf.