<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Dear all,
<div><br>
</div>
<div>I am comparing 2 groups of participants in 4 different conditions (videos with different audiovisual asynchronies). </div>
<div>After each video, the participants were asked to judge whether the video just watched was in-sync (S1) or out-of-sync (S2).</div>
<div>Is there a way of epoching events that were followed by an in-sync response separately from the ones that were followed by an out-of-sync response? </div>
<div>I tried the code below for the in-sync responses (S1), without success..</div>
<div><br>
</div>
<div>
<div>ep_lim = [-0.8, 2];</div>
<div>tps = {EEG.event.type};</div>
<div>corr_tp = find(strcmp('1', tps));</div>
<div>prev_ev = corr_tp - 1;</div>
<div>EEG = pop_epoch( EEG, {}, ep_lim, 'eventindices', prev_ev);</div>
</div>
<div><br>
</div>
<div>Thank you for your attention!</div>
<div><br>
</div>
<div>ana francisco</div>
</div>
</body>
</html>