eeg_region_peaks - function[regions =...

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

View Full Document Right Arrow Icon
function [regions] = eeg_region_peaks(p,times,regions,missing) % eeg_region_peaks - Find peaks in regions of electrodes % % Usage: [regions] = eeg_region_peaks(p,times,regions,missing) % % requires and p.volt.timeArray % % 'times' is 1 row x 3 columns, with values % for start, peak and end time windows (in that order) % in the scale of p.volt.timeArray % % 'regions' is optional. When omitted or an empty matrix, % it is created by elec_regions.m, see that function for % more information. % % 'missing' is a boolean switch. If missing = 0, then % the maximal region value at the peak time (ie, times(r,2)) % is returned. This avoids missing values in the return % data (default). % % returns 'regions' - an array of structures with % negtimes. The latter are arrays of the max/min peak % values at the time windows of 'times'. % % Depends on eeg_peaks & sometimes elec_regions. Called % in, for example, eeg_region_peaks_script.m % % $Revision: 1.1 $ $Date: 2009/04/28 22:13:53 $ % Licence: GNU GPL, no express or implied warranties % History: 03/2002, % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Check p structure fields if ~isfield(p.volt,'timeArray'), msg = sprintf('EEG_REGION_PEAKS: p.volt.timeArray does not exist.\n'); error(msg); end if isempty(p.volt.timeArray),
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 / 4

eeg_region_peaks - function[regions =...

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