# Overview
This is a MATLAB importer for .xdf files. xdf files are likely to have been created by [LabRecorder](https://github.com/labstreaminglayer/App-LabRecorder), the default file recorder for use with [LabStreamingLayer](https://github.com/sccn/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](http://github.com/sccn/xdf/).
# 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:
* Start MATLAB and make sure that you have the function added to MATLAB's path. You can do this either through the GUI, under File / Set Path / Add Folder) or in the command line, by typing:
> `addpath('C:\\path\\to\\xdf_repo\\Matlab\\xdf')`
* To load an .xdf file, type in the command line:
> `streams = load_xdf('your_file_name.xdf')`
* After a few seconds it should return a cell array with one cell for every stream that was contained in the file. For each stream you get a struct that contains the entire meta-data (including channel descriptions and domain-specific information), as well as the time series data itself (numeric or cell-string array, depending on the value type of the stream), and the time stamps of each sample in the time series. All time stamps (across all streams, even if they were collected on different computers of the lab network) are in the same time domain, so they are synchronized. Note that time stamps from different .xdf files are generally not synchronized (although they will normally be in seconds since the recording machine was turned on).
# Documentation
As usual in MATLAB, to get the documentation of the function, type `help load_xdf` or `doc load_xdf`.
Matlab code for working with xdf files.zip
版权申诉
196 浏览量
2023-07-23
10:10:01
上传
评论
收藏 18KB ZIP 举报
AbelZ_01
- 粉丝: 901
- 资源: 5441
最新资源
- bj计算机思维citel
- 课程设计作业-SpringBoot企业产品仓库管理系统(文档 + 源码 + 数据库文件)
- python相关知识点说明
- 基于 STM32 实现交通灯控制程序源码+详细文档+全部资料(优秀项目).zip
- linux简介及基础教程及特点阐述.txt
- 数据结构课程设计课作业资料
- java简介及基础教程及特点阐述.txt
- 一个简单的数据分析脚本示例,它使用Python和pandas库来读取CSV文件、执行一些基本的数据清洗和转换,并进行简单的可视化
- AD7124+PT100 基于STM32f103的代码 检测多路温度(100~-200)并输出
- CHROME webdriver Version: 125.0.6422.78 win64
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈