eeg_region_dif_peaks_script - % eeg_region_dif_peaks_script...

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

View Full Document Right Arrow Icon
% eeg_region_dif_peaks_script - analyse regional ERP peaks eeg_load_difdata_script; % Define ERP time windows of analysis, % corresponding to ERP component peak(s) % Each row is start time, peak time, end time (msec) times = [150 300 450; 300 550 700]; % Replace missing data with peak time potential missing = 0; clear dif for g=1:length(groups), for s=1:length(subs), for t=1:size(times,1), % Find regional peaks for difference waves sub = sprintf('%s%02d%s%s',groups{g},subs(s),cond{1},ext); fprintf('Selecting %s\n',sub); = eval(sub); p.volt.timeArray = timeArray; regions = eeg_region_peaks(p,times(t,:),[],missing); dif(t,g).sub(s,:) = {sub}; dif(t,g).group(s,:) = groups(g); dif(t,g).cond(s,:) = cond(1); dif(t,g).times(s,:) = times(t,:); dif(t,g).names(s,:) = {}; dif(t,g).pospeaks(s,:) = [regions.pospeaks]; dif(t,g).postimes(s,:) = [regions.postimes]; dif(t,g).poselecs(s,:) = [regions.poselecs]; dif(t,g).negpeaks(s,:) = [regions.negpeaks]; dif(t,g).negtimes(s,:) = [regions.negtimes];
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the 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 / 3

eeg_region_dif_peaks_script - % eeg_region_dif_peaks_script...

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