Dear SPMers,
I'm trying to analyze fMRI data that is stored as a single nii-file, I'm
using the batch file that can be found at
http://www.fil.ion.ucl.ac.uk/spm/data/auditory/auditory_spm5_batch.m
I've only changed
f = spm_select('FPList', fullfile(data_path,'fM00223'), '^f.*\.img$') ;
a = spm_select('FPList', fullfile(data_path,'sM00223'), '^s.*\.img$') ;
to
f = ['/flush/andek/fMRI/func/func_' num2str(file_number) '.nii'];
a = ['/flush/andek/fMRI/anat/anat_' num2str(file_number) '.nii'];
1) The problem is that SPM thinks that the number of timepoints is 1
(SPM.nscan = 1), how can I solve this? Can SPM only handle data which is
stored as one file per timepoint i.e. 200 files if there are 200
timepoints ?
2) If there already exists an SPM.mat file, the default seems to be to
ask the user if the file should be overwritten or not. How can I change
this to always overwrite SPM.mat? I want to analyze a number of datasets
in a loop, without any user interaction.
/Anders
--
--
-----------------------------------------------------------------------
Anders Eklund
Phd student
Medical Informatics, Department of Biomedical Engineering
CMIV, Center for Medical Image Science and Visualization
Tel: +46 73 6003790 mail: [log in to unmask]
Fax: +46 13 101902 web: http://www.wanderineconsulting.com/
-----------------------------------------------------------------------
|