ET_PDToolkit/PDToolkit/@PDTrial/prf_convolve.m

14 lines
330 B
Matlab

function[model] = prf_convolve(obj, stick_model, slope)
start_trial= obj.deconvolution.time(1);
time = obj.deconvolution.time - start_trial;
[obj prf]= obj.pupil_response_function(time);
model = conv(stick_model, prf, 'same')';
slope_model = 1:length(model);
slope_model = slope_model .* slope;
model = model + slope_model';