Print

Print


Hello Volkmar,
thank you for the answer.
What do you mean with "saved batch"...? You mean within a matlab script?

So it is not possible to change the output prefix with something like that:

        clear matlabbatch
        spm_get_defaults('normalise.write.prefix','a'); %try 1
        spm('defaults','fmri');
        spm_get_defaults('normalise.write.prefix','a'); %try 2
        spm_jobman('initcfg');
        spm_get_defaults('normalise.write.prefix','a'); %try 3
        matlabbatch{1}.spm.spatial.normalise.write.subj.def = {fullfile(DATA_DIR,'y_MAG.nii')};
        matlabbatch{1}.spm.spatial.normalise.write.subj.resample = { fullfile(DATA_DIR,normdata{knormdata}) };
        matlabbatch{1}.spm.spatial.normalise.write.woptions.bb = ones(2,3)*NaN;
        matlabbatch{1}.spm.spatial.normalise.write.woptions.vox = [NaN NaN NaN];
        matlabbatch{1}.spm.spatial.normalise.write.woptions.interp = 4;
        spm_jobman('run',matlabbatch);

=> did not run... or did not give files with the prefix 'a' (should it run with one of these lines?)

So I need maybe to create different "spm_my_defaults.m"  for my case?

Thank you

Andi