⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadeep_avg.m

📁 含有多种ICA算法的eeglab工具箱
💻 M
字号:
% loadeep_avg() - Load an averaged ANT EEP file (*.avr).%% Usage:%   >> [eep] = loadeep_avg(file);%% Inputs:%            filename    - name of averaged ANT EEP file, including extension (*.avr)%% Outputs:%   [eep]                - data structure holding continous EEG information and other%                          relevant information.%% Author: Maarten-Jan Hoeve, ANT Software, The Netherlands / www.ant-software.nl, 8 October 2003%% See also: eeglab(), pop_loadeep_avg()%123456789012345678901234567890123456789012345678901234567890123456789012% Copyright (C) 2003 Maarten-Jan Hoeve, ANT Software, The Netherlands, m.hoeve@ieee.org / info@ant-software.nl%function r=loadeep_avg(file)if nargin < 1	help loadeep;	return;end;	% defaultsif ~any(file=='.'), file=[file '.avr']; end[datdir,name,ext]=fileparts(file);disp(['Loading file ' file ' ...'])eeg=read_eep_avr(file);r.filename=file;r.totsamples=eeg.npnt;r.nchannels=eeg.nchan;r.rate=eeg.rate;% Create struct for holding channel labelsfor i=1:r.nchannels    chanlocs(i).labels=char(eeg.label(i));    chanlocs(i).theta=0;    chanlocs(i).radius=0;    chanlocs(i).X=0;    chanlocs(i).Y=0;    chanlocs(i).Z=0;    chanlocs(i).sph_theta=0;    chanlocs(i).sph_phi=0;    chanlocs(i).sph_radius=0;    endr.chanlocs=chanlocs;r.nsmpl=eeg.npnt;r.time=eeg.time;r.dat=eeg.data;r.nsweeps=eeg.nsweeps;     %number of trials averagedr.xmin=eeg.xmin; r.xmax=eeg.xmax;r.variance=eeg.variance;   % variance (nchan x npnt)r.condlab=eeg.condlab;     % string with condition labelr.condcol=eeg.condcol;     % string with color code for conditionr.trialc=eeg.trialc;       % total number of trial in original datar.rejtrialc=eeg.rejtrialc; % number of rejected trials

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -