EEG-processing
==============
This repository contains three programs:
1. A script for batch processing EEG data with Matlab 2015b, found under `batch_processing`
2. A hacked version of `EEG recorder_v4.2` for Matlab 2007b, found under `hacked_recorder`
3. An applet to give neurofeedback to the participant, found under `neurofeedback_applet`
Batch processing of EEG data
----------------------------
To batch process EEG data, follow these steps:
- make sure all the data you want to process at the same time is nicely together in a directory
- (un)comment desired code and set desired constants in `batch_function.m`. Make sure to choose the output variable correctly.
- run `main_script.m`
The hacked EEG recorder
-----------------------
To run the hacked EEG recorder, navigate to the `hacked_recorder` directory within Matlab 2007b,
type `EEG_recorder` in the Matlab prompt and hit return. The program will automatically start updating
the files `alpha.txt` and `beta.txt` with the calculated alpha and bèta values.
To change how this value is calculated from the total power spectrum, change the function in `eeg_power_processing.m`.
It gets a frequency x time matrix and should output whatever should be printed to the file. To change how long data must
be agregated before it is processed, which frequency bands to process and where to save the resulting values, change
the globals `OUTPUT_DELAY`, `OUTPUT_BANDS` and `OUTPUT_FILENAMES` (respectively) in the first few lines of `EEG_recorder.m`.
`OUTPUT_DELAY` is in seconds, `OUTPUT_BANDS` in Hertz and paths in `OUTPUT_FILENAMES` are relative to the current working
directory (the content of which is shown in the small file browser in Matlab), which will be `hacked_recorder` if you
correctly followed the instructions for running the hacked recorder.
The only file of `EEG recorder_v4.2` that was changed, is `EEG_recorder.m`. To see what exactly was
changed, navigate to the root directory of this repository and run:
git diff 800c62d -- EEG_recorder.m hacked_recorder/EEG_recorder.m
Additionally, the following files were added:
- `eeg_power_buffer.m`
- `eeg_power_init.m`
- `eeg_power_save.m`
- `eeg_power_processing.m`
The neurofeedback applet
------------------------
To run the neurofeedback applet, navigate to the `neurofeedback_applet` directory within Matlab 2007b,
type `Concentration_Exp` in the Matlab prompt and hit return.
没有合适的资源?快使用搜索试试~ 我知道了~
matlab脑电功率谱代码-EEG-processing:脑电数据的批处理
共14个文件
m:11个
md:1个
txt:1个
5星 · 超过95%的资源 需积分: 50 49 下载量 52 浏览量
2021-05-28
06:46:41
上传
评论 4
收藏 14KB ZIP 举报
温馨提示
matlab脑电功率谱代码脑电图处理 该存储库包含三个程序: 使用Matlab 2015b批处理EEG数据的脚本,位于batch_processing 在hacked_recorder下找到的适用于Matlab 2007b的EEG recorder_v4.2 hacked_recorder被黑客攻击版本 在neurofeedback_applet下找到向参与者提供神经反馈的小程序 脑电数据的批处理 要批处理EEG数据,请按照下列步骤操作: 确保您要同时处理的所有数据都放在一个目录中 (取消)注释所需的代码,并在batch_function.m设置所需的常量。 确保正确选择输出变量。 运行main_script.m 被黑的脑电记录器 要运行被黑的EEG记录器,请导航到Matlab 2007b中的hacked_recorder目录,在Matlab提示符下键入EEG_recorder ,然后按回车键。 该程序将自动开始使用计算出的alpha和bèta值更新文件alpha.txt和beta.txt 。 要更改从总功率谱计算此值的方式,请更改eeg_power_processing.m的函数。
资源详情
资源评论
资源推荐
收起资源包目录
EEG-processing-master.zip (14个子文件)
EEG-processing-master
README.md 2KB
tips voor Matlab.txt 664B
batch_processing
main_script.m 902B
cut_data.m 888B
power_filter.m 579B
data_power.m 1KB
batch_function.m 2KB
powers_x_axis.m 692B
versions.csv 1KB
hacked_recorder
EEG_recorder.m 36KB
eeg_power_save.m 801B
eeg_power_init.m 160B
eeg_power_processing.m 145B
eeg_power_buffer.m 559B
共 14 条
- 1
weixin_38665162
- 粉丝: 1
- 资源: 927
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5