Sorry, that should have been:
fg = num2str(spm_figure('FindWin','Graphics'));
varargout = {['print -f' fg ' -dpsc2 -painters -append -noui ']};
Best regards,
-John
On Monday 24 October 2005 11:00, Markus Mertens wrote:
> Thank you for your reply. But with this workaround printing does not work
> at all...
>
>
>
> SPM2: spm_realign_ui (v2.10) 12:00:29 - 24/10/2005
> ========================================================================
>
> ! - SPM2: printing problem... -------------------------------------
>
> Error using ==> print
> Error using ==> graphics/private/inputcheck
> Multiple inputs that look like filenames: '1' and 'spm2.ps'
>
> - print command is:
> print 1 -dpsc2 -painters -noui spm2.ps
>
> - current directory is:
> /home/mer
>
> * nothing has been printed *
>
> ----------------------------------------- 12:00:58 - 24/10/2005
>
> John Ashburner <[log in to unmask]> schrieb:
> > 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?
|