Hi Matthieu,
I just replied to something similar to this for realignment in spm5. I have not
looked at spm8 at all, so I apologize if this is a completely different problem. If
so, please ignore the following.
That said, if printing works the same as in spm5, then each file is being saved
with only the date in the filename, correct? Thus multiple files from the same
day will overwrite each other. To fix this, in spm5 at least, go to spm_print
and change
t = clock;
nam = ['spm_' num2str(t(1)) mon{t(2)} sprintf('%.2d',t(3))];
to
t = fix(clock);
nam = ['spm_' num2str(t(1)) mon{t(2)} sprintf('%.2d',t(3)) '_'
sprintf('%.2d',t(4)) sprintf('%.2d',t(5)) sprintf('%.2d',t(6))];
Now files will be saved looking something like spm_2008Nov19_152536.ps
instead of spm_2007Nov19.ps. Again, apologies if this is not relevant to your
problem. Hopefully I am not way off base here and this will help.
Regards,
Neil
--
Neil R. Chatterjee
Research Assistant
Stanford Systems Neuroscience & Pain Lab
650-724-0522
[log in to unmask]
On Mon, 10 Nov 2008 11:28:59 +0100, Mathieu d'Acremont
<[log in to unmask]> wrote:
>Dear all,
>
>I'm using batch in SPM8b to report results for several contrasts. The
>*.ps files with the results are saved with the same name, so at the end
>only the last contrast is saved. Is there a way to specify a different
>*.ps file name for each contrast?
>
>Cheers,
>
>Here is the .m batch file:
>
>%-----------------------------------------------------------------------
>% Job configuration created by cfg_util (rev $Rev: 2427 $)
>%-----------------------------------------------------------------------
>matlabbatch{1}.spm.stats.results.spmmat =
>{'/home/mathijs/Work/Study/Published/FmriUsc.mat/Subject/Ag/Parametric/S
PM.mat'};
>matlabbatch{1}.spm.stats.results.conspec(1).titlestr = 'SelectCard';
>matlabbatch{1}.spm.stats.results.conspec(1).contrasts = 1;
>matlabbatch{1}.spm.stats.results.conspec(1).threshdesc = 'FWE';
>matlabbatch{1}.spm.stats.results.conspec(1).thresh = 0.05;
>matlabbatch{1}.spm.stats.results.conspec(1).extent = 0;
>matlabbatch{1}.spm.stats.results.conspec(1).mask = struct('contrasts',
>{}, 'thresh', {}, 'mtype', {});
>matlabbatch{1}.spm.stats.results.conspec(2).titlestr = 'PEScale';
>matlabbatch{1}.spm.stats.results.conspec(2).contrasts = 2;
>matlabbatch{1}.spm.stats.results.conspec(2).threshdesc = 'FWE';
>matlabbatch{1}.spm.stats.results.conspec(2).thresh = 0.05;
>matlabbatch{1}.spm.stats.results.conspec(2).extent = 0;
>matlabbatch{1}.spm.stats.results.conspec(2).mask = struct('contrasts',
>{}, 'thresh', {}, 'mtype', {});
>matlabbatch{1}.spm.stats.results.print = true;
>
>
>--
>Mathieu d'Acremont, Ph.D.
>Chief Scientist [log in to unmask]
> http://people.epfl.ch/mathieu.dacremont
> Phone/Fax: +4121 693 00 91/20
>
>Swiss Federal Institute of Technology (EPFL)
>Laboratory for Decision-Making under Uncertainty
>Odyssea 3 18
>Station 5
>CH-1015 Lausanne
|