Dear all,
How can I extract time series of a region with mask when I didn’t define any contrast? Is the following procedure correct?
When I consider matlabbatch{1}.spm.util.voi.adjust = NaN , I get an error! You know what should I do?
spm_mat_file = '';
% Start batch
clear matlabbatch;
matlabbatch{1}.spm.util.voi.spmmat = cellstr(spm_mat_file);
matlabbatch{1}.spm.util.voi.adjust = 0; % Effects of interest contrast number
matlabbatch{1}.spm.util.voi.session = 1; % Session index
matlabbatch{1}.spm.util.voi.name = 'name'; % VOI name
matlabbatch{1}.spm.util.voi.roi{1}.mask.image(1) = {('… \mask.nii,1')};
matlabbatch{1}.spm.util.voi.roi{1}.mask.threshold = 0.5;
matlabbatch{1}.spm.util.voi.expression = 'i1';
% Run the batch
spm_jobman('run',matlabbatch);
another question I have, how can I extract mask of all regions from spm atlas?
Best,
Soroor
|