Print

Print


I assume we are talking SPM5 here. The function you need is spm_jobman, 
and spm_jobman('run',job) should do the trick.

On Tue, 10 Apr 2007, Lu Xu wrote:

> Hi, Geoffrey,
>
> Thank you for taking time to help me!
>
> I would like to incorporate coregistration into my existing automated
> process without having to pause, manually load .mat files for
> coregistration, hit "Run" on SPM GUI, wait, then go on with the rest of the
> Matlab processes.
>
> I have already written a Matlab script which generates the .mat file for
> each patient's coregistration.  But I have to "LOAD" the .mat files manually
> on SPM GUI and hit "RUN".  Is there a Matlab command (or a set of them)
> which uses the .mat files and runs coregistration automatically within the
> Matlab command line environment?
>
> Please let me know if my question is yet clear.
>
> Cheers,
>
> Lu
>
> -----Original Message-----
> From: Geoffrey Tan [mailto:[log in to unmask]]
> Sent: Tuesday, April 10, 2007 12:30 PM
> To: Lu Xu
> Subject: Re: [SPM] use coreg .mat file with command line?
>
> Hi Lu,
> I don't really understand your question. What do you mean by utilise?
> Perhaps if you explain what you do in the GUI for one image, I can help.
> Best Wishes,
> Geoffrey
>
> Lu Xu wrote:
>
>> Hi, SPM-ers,
>>
>>
>>
>> I am trying to set up batch processing of coregistration for many
>> patients.  I have generated .mat files (with coreg options and image
>> file specifications) for each patient.  Is there a way to utilize
>> these .mat files within Matlab command line window, instead of
>> manually clicking on the GUI?
>>
>>
>>
>> Thanks!
>>
>>
>>
>> Lu
>>
>>
>>
>>
>>
>
>

-- 
Volkmar Glauche
-
Department of Neurology		[log in to unmask]
Universitaetsklinikum Freiburg	Phone	49(0)761-270-5331
Breisacher Str. 64		Fax	49(0)761-270-5416
79106 Freiburg			http://fbi.uniklinik-freiburg.de/