help > RE: Warning: Divide by zero.
Aug 21, 2015  02:08 PM | Chunliang Feng
RE: Warning: Divide by zero.
Hi Donald,

     Thanks for your reply. Yes, createVec.m at 757 included the code that you pasted.

     It is an event-related design; however, duration of each event in the GLM was set to a non-zero value (i.e., boxcar regressor), and response time was added as a parametric regressor for each trial. The followings are part of scripts to set up tasks and contrasts.

P.Tasks={'0','condA_run1','condB_run1','condA_run2','condB_run2'};


P.Contrasts(1).left={'condA_run1' 'condA_run2'};
P.Contrasts(1).right={'none'};
P.Contrasts(1).STAT='T';
P.Contrasts(1).Weighted=0;
P.Contrasts(1).MinEvents=1;
P.Contrasts(1).name='condA';



Best,
Chunliang

Threaded View

TitleAuthorDate
Chunliang Feng Aug 20, 2015
Donald McLaren Aug 21, 2015
RE: Warning: Divide by zero.
Chunliang Feng Aug 21, 2015
Donald McLaren Aug 21, 2015
Chunliang Feng Aug 22, 2015