eeg_lap2scd_script.m
来自「Matlab下的EEG处理程序库」· M 代码 · 共 35 行
M
35 行
% EEG_LAP2SCD_Script - load ERP Laplacian data and convert to SCD
% Author: Darren.Weber@flinders.edu.au
% calls eeg_load_ascii, eeg_write_ascii, & eeg_lap2scd
clear; close all;
inpath = 'd:\MyDocuments\emse_data\ptsd-pet\lap14hz\';
outpath = 'd:\MyDocuments\emse_data\ptsd-pet\scd14hz\';
infile_ext = '_lap14hz.txt';
outfile_ext = '_scd14hz.txt';
format = '%12.4f ';
groups = {'c' 'p'};
subjects = {'01' '02' '03' '04' '05' '06' '07' '08' '09' '10'};
conditions = {'o' 'oac' 'oat' 'ouc' 'out' 't' 'tac' 'tad' 'tat' 'tuc' 'tud' 'tut'};
for g = 1:length(groups)
for s = 1:length(subjects) subj = strcat(char(groups(g)),char(subjects(s)));
for c = 1:length(conditions) cond = char(conditions(c));
infile = strcat(inpath,subj,cond,infile_ext); % load input Laplacian ascii data
lap = eeg_load_ascii(infile); % for this data, lap in uV/m^2
scd = eeg_lap2scd(lap); % calculate scalp current density
% given lap uV/m^2, scd in uA/m^3
outfile = strcat(outpath,subj,cond,outfile_ext); % output scalp current density data
eeg_write_ascii(outfile,scd,format);
end
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?