ctf_stim_sortRT - end RTs = ; for i = 1:size(stim_data,3)...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function ctf = sortrtctf(ctfds) RESPTHRESH = 10^7; if nargin < 1 ctfds = ''; end ctf = ctf_read(ctfds); stim_chan = find(strcmp(ctf.sensor.label,'STIM')); if (length(stim_chan) == 1) stim_data = ctf.data(:,stim_chan,:); else error('ERROR: could not properly locate STIM channel');
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: end RTs = ; for i = 1:size(stim_data,3) tmp = stim_data(:,1,i); RTs(end+1) = min(find(tmp &gt; RESPTHRESH)); end [RTs_sorted,RTsx] = sort(RTs); ctf.data = ctf.data(:,:,RTsx);...
View Full Document

This note was uploaded on 10/07/2010 for the course ENG 42336 taught by Professor Thomasholland during the Spring '10 term at UC Davis.

Ask a homework question - tutors are online