<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div class="">
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class="">Hi - </font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><br class="">
</font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class="">I’m trying to do something a bit irregular with newtimef where I want at a baseline from earlier in the trial, not from the period immediately before the time-locking.</font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><br class="">
</font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class="">My time-locking at time t=0 is to the END of a stimulus. But the stimulus is 2000 ms long. I want to time-lock to be at the end of the stimulus, but have the baseline be the 1000
 ms BEFORE the stimulus begins.</font></div>
<div class="" style="margin: 0px; line-height: normal;"><span style="font-size: large;" class=""><br class="">
</span></div>
<div class="" style="margin: 0px; line-height: normal;"><span style="font-size: large;" class="">I tried: </span></div>
</div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><br class="">
</font></div>
<div class="" style="margin: 0px; line-height: normal;">
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><i class="">    [erspTRIAL, itc, powbaseTRIAL, times, freqs, erspboot, itcboot, tfdataStand] = newtimef...</i></font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><i class="">        (EEG_TRIAL.icaact(IC,:,:), EEG_TRIAL.pnts, [EEG_TRIAL.xmin EEG_TRIAL.xmax]*1000, EEG_TRIAL.srate, 0,...</i></font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><i class="">        'cycles', [3 0.5], 'tlimits', <b class="">[-3000 2000]</b>, 'freqs', [4 30], 'timesout', 800,...</i></font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><i class="">        'baseline',<b class="">[-3000 -2000]</b>,...</i></font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><i class="">         'plotitc', 'off', 'plotersp', 'off','padratio', 8);</i></font></div>
</div>
<div class="" style="margin: 0px; line-height: normal;"><br class="">
</div>
<div class="" style="margin: 0px; line-height: normal;"><span class="" style="font-size: large;">and this ran at least, but gave me a garbage-looking figure.</span></div>
<div class="" style="margin: 0px; line-height: normal;"><span class="" style="font-size: large;"><br class="">
</span></div>
<div class="" style="margin: 0px; line-height: normal;"><span class="" style="font-size: large;">I expect this is partly about the </span><i class="">EEG_TRIAL.xmin EEG_TRIAL.xmax, </i><font size="4" class="">but I also want to know if, in principle, this approach
 can work,</font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class=""><br class="">
</font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class="">thanks</font></div>
<div class="" style="margin: 0px; line-height: normal;"><font size="4" class="">-adam</font></div>
<div class="" style="margin: 0px; line-height: normal;"><br class="">
</div>
<div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
---------------------------------------<br class="">
Adam R. Aron<br class="">
Professor, Department of Psychology<br class="">
University of California, San Diego<br class="">
Phone: 858 822 1096 (office)<br class="">
<a href="http://www.aronlab.org" class="">www.aronlab.org</a></div>
</div>
</div>
</div>
<br class="">
</body>
</html>