Dear Marko,
Try using the conv function in MATLAB. For example, to convolve a boxcar of
length 20 with a canonical HRF collected using a TR of 1.5 seconds, type
figure; plot (conv( ones(1,20), spm_hrf(1.5) ))
Hope this helps,
Daniel Weissman
-----Original Message-----
From: SPM (Statistical Parametric Mapping) [mailto:[log in to unmask]] On
Behalf Of Marko Wilke
Sent: Monday, April 18, 2005 10:18 AM
To: [log in to unmask]
Subject: [SPM] Get HRF
Dear All,
I would like to examine the HRF generated by spm2, and it would be most
convenient to be able to convolve my given boxcar with the HRF without
having to specify a model etc.
I understand how I can use spm_HRF to get the overall timecourse, but I
did not quite get how to apply this to a number of timepoints in a row
(e.g., for a block-design). As always, any hints are appreciated,
Best,
Marko
--
=====================================================================
Marko Wilke (Dr.med./M.D.)
[log in to unmask]
Universitäts-Kinderklinik University Children's Hospital
Abt. III (Neuropädiatrie) Dept. III (Pediatric neurology)
Hoppe-Seyler-Str. 1, D - 72076 Tübingen
Tel.: (+49) 07071 29-83416 Fax: (+49) 07071 29-5473
=====================================================================
|