Thanks for the bug report. This will be fixed in SPM5b, but I'll just provide
a workaround for SPM2. This involves changing spm_figure.m at around line
325 from:
varargout = {'print -dpsc2 -painters -append -noui '};
to:
fg = num2str(spm_figure('FindWin','Graphics'));
varargout = {['print ' fg ' -dpsc2 -painters -append -noui ']};
Best regards,
-John
> I have the following problem:
>
> Before I select "Realign" from the SPM2 menu the variables gcbf and gcbo
> are both not set, yet. But when the function spm_realign_gui is called both
> variables have floating point values (e.g. gcbo=13.0066, gcbf=0.0066). The
> problem is that the value of gcbf is later used as handle to the SPM
> graphics window (matlab/toolbox/matlab/private/validate.m). Since this is
> an invalid handle value the graphics are not printed in the file spm2.ps.
> What can I do to avoid this problem?
|