eeg_load_scan_eeg

Eeg_load_scan_eeg - function[signal accept typeeeg rt response chan_names pnts nsweeps rate xmin xmax]=loadeeg FILENAME chanlist TrialList

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: function [signal, accept, typeeeg, rt, response, chan_names, pnts, nsweeps, rate, xmin, xmax]=loadeeg( FILENAME, chanlist, TrialList, typerange, acceptype, rtrange, responsetype) % eeg_load_scan_eeg - Load Neuroscan .EEG format % % Usage: [signal, accept, typeeeg, rt, response, chan_names, pnts, nsweeps, rate, xmin, xmax]=loadeeg( FILENAME, chanlist, TrialList, typerange, acceptype, rtrange, responsetype) % % FILENAME input Neuroscan .avg file % signal output signal % variance variance of the signal % chan_names array that represent the name of the electrodes % % i.e. % [signal] = loadeeg( 'test.eeg' ); % load data into the array named 'signal' % plot( signal(1,:) ); % plot the signal for the first electrode of the first sweep % % data are organised into an array of Number_of_electrode x (Number_of_points_per_trial*Number_of_sweeps) % for a file with 32 electrodes, 700 points per trial and 300 sweeps, the resulting array is % of 32 collumn and 700*300 rows (300 consecutive blocs of 700 points) % % $Revision: 1.1 $ $Date: 2009/04/28 22:13:52 $ % Licence: GNU GPL, no implied or express warranty % History: 01/2001, [email protected] % 1062001 0.0 primitive version % 1102001 1.0 fully working version % 1112001 1.1 more parameters % 1152001 1.2 fix bugs % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% if nargin<1 fprintf('Not enought arguments\n'); help loadeeg return; end; if nargin<2 CHAN='all'; end; if nargin<3 TrialList='all'; end; if nargin<4 typerange='all'; end; if nargin<5 acceptype='all'; end; if nargin<6 rtrange ='all'; end; if nargin<7 responsetype='all'; end; % open file for reading % --------------------- fid=fopen(FILENAME,'r','ieee-le'); if fid<0 fprintf(2,['Error LOADEEG: File ' FILENAME ' not found\n']); return; end; % read general part of the erp header and set variables % -----------------------------------------------------...
View Full Document

This note was uploaded on 10/06/2010 for the course ENG 42325 taught by Professor Lagerstrom during the Spring '10 term at UC Davis.

Page1 / 4

Eeg_load_scan_eeg - function[signal accept typeeeg rt response chan_names pnts nsweeps rate xmin xmax]=loadeeg FILENAME chanlist TrialList

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online