Hi,
> I was interested in a batch extraction of the fitted event time course using
> marsbar. I believe the batch code on the FAQ page is for the FIR event
> response. How would I modify this to extract the fitted event time course?
That would be something like (from FAQ FIR example):
% Get definitions of all events in model
[e_specs, e_names] = event_specs(E);
n_events = size(e_specs, 2);
% event duration, here assuming zero for each event type
dur = 0;
% Return time courses for all events in tc matrix
for e_s = 1:n_events
tc(:, e_s) = event_fitted(E, e_specs(:,e_s), dur);
end
See:
http://marsbar.sourceforge.net/doc-devel/latest/marsbar/@mardo/event_fitted.html
Best,
Matthew
|