Print

Print


Dear all,


I am currently doing the 1st level analysis by SPM12. The task used in my study has 3 runs, and 240 scans in each run. I firstly selected the smoothed data and then added them into the matlabbatch.mat using the following script (for run1):


 fun_img_list1=spm_select('expand', fullfile(sub_id, 'func', f1name));
    file_cell1=cell(length(fun_img_list1),1);
    for j=1:length(fun_img_list1)
        file_cell1(j,1)={[pwd '\' fun_img_list1(j,:)]};    
    end    
matlabbatch{1,1}.spm.stats.fmri_spec.sess(1,1).scans=file_cell1;



Please kindly find the attached firstlevel.mat. It seems that 240 files in run have been already loaded in matlabbatch{1,1}.spm.stats.fmri_spec.sess(1,x).scans. However, when I tried to run it by spm_jobman commend or batch in SPM GUI, it showed that only 141 files were loaded (file 100-240, see attached figure1 for details). Is there anything wrong with my analysis? 


Best,
Yuanwei