Reply-To: | | [log in to unmask][log in to unmask]> >> >> Dear Jeroen, >> >> Did you actually run the batch with: >> >> spm_jobman('run', matlabbatch); >> >> ? >> >> Vladimir >> >> On Fri, Nov 4, 2011 at 9:06 AM, Jeroen Van Schependom >> <[log in to unmask]> wrote: >> > Dear Vladimir, >> > >> > The code I used untill now does not produce the nifti-images. Please >> > find an >> > example below. >> > >> > matlabbatch{4}.spm.meeg.source.invert.D = >> > {['C:\Users\k1787\Documents\PhD - >> > Matlabfiles\espm8_' naam '.mat']}; >> > matlabbatch{4}.spm.meeg.source.invert.val = 1; >> > matlabbatch{4}.spm.meeg.source.invert.whatconditions.condlabel = '12'; >> > matlabbatch{4}.spm.meeg.source.invert.isstandard.standard = 1; >> > matlabbatch{4}.spm.meeg.source.invert.modality = {'All'}; >> > %Inversion results >> > matlabbatch{5}.spm.meeg.source.results.D = ['espm8_' naam '.mat']; >> > matlabbatch{5}.spm.meeg.source.results.val = 1; >> > matlabbatch{5}.spm.meeg.source.results.woi = [-100 900]; >> > matlabbatch{5}.spm.meeg.source.results.foi = [0 100]; >> > matlabbatch{5}.spm.meeg.source.results.ctype = 'evoked'; >> > matlabbatch{5}.spm.meeg.source.results.space = 0; >> > matlabbatch{5}.spm.meeg.source.results.smoothing = 8; >> > >> > Should I add a line or is this code supposed to produce nifti-images. I >> > also >> > added following lines : >> > >> > matlabbatch{6}.spm.meeg.source.extract.D = >> > {['C:\Users\k1787\Documents\PhD - >> > Matlabfiles\espm8_' naam '.mat']}; >> > matlabbatch{6}.spm.meeg.source.extract.val = 1; >> > matlabbatch{6}.spm.meeg.source.extract.source = struct('label', {}, >> > 'xyz', >> > {}); >> > matlabbatch{6}.spm.meeg.source.extract.rad = 5; >> > matlabbatch{6}.spm.meeg.source.extract.type = 'evoked'; >> > matlabbatch{6}.spm.meeg.source.extract.fname = ['spm8_final_' naam]; >> > >> > But no file, starting with 'spm8_final_' is created either. >> > >> > Many thanks, >> > >> > >> > Jeroen Van Schependom >> > >> > >> > >> > 2011/11/3 Vladimir Litvak <[log in to unmask]&˛jĖt |