Matthew, > It appears to me that it isn't possible to specify variable event durations in > batch mode, when there is more than one condition per session (which is surely > the most common case) (spm_get_ons.m lines 256-274). Is that right? Has anyone > invented a way round this if so? I haven't been able to specify variable event durations either - instead, what I've been doing is specify the conditions as regressors, after generating one regressor per condition per session, by creating a stick function of ones and zeros, convolving it with the output from spm_hrf (all this at 10 bins per second) and then sub-sampling from the resulting function at the TR. Would be very interested to hear if anyone has worked out a different method though. Best, -k. _____________________________________________________________________________ Kalina Christoff Email: [log in to unmask] Office: Rm.478; (650) 725-0797 Department of Psychology Home: (650) 497-7170 Jordan Hall, Main Quad Fax: (650) 725-5699 Stanford, CA 94305-2130 http://www-psych.stanford.edu/~kalina/ _____________________________________________________________________________ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%