Home > data-analysis > manip > event > get_event_opposite.m

get_event_opposite

PURPOSE ^

This function get the durations that are not within the event ranges but

SYNOPSIS ^

function event_out = get_event_opposite(sub_id, event_data, trial_times)

DESCRIPTION ^

 This function get the durations that are not within the event ranges but
 still within trials, return as events

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function event_out = get_event_opposite(sub_id, event_data, trial_times)
0002 
0003 % This function get the durations that are not within the event ranges but
0004 % still within trials, return as events
0005 
0006 if ~exist('trial_times', 'var')
0007     trial_times = get_trial_times(sub_id);
0008 end
0009 
0010 cevent_data = ones(size(event_data, 1), 3);
0011 cevent_data(:, 1:2) = event_data;
0012 
0013 event_out = get_cevent_opposite(sub_id, cevent_data, trial_times);

Generated on Tue 23-May-2017 03:00:58 by m2html © 2005