You don't have to install matlabbatch because it is already installed as
part of spm8 ( matlabbatch subdirectory of your spm directory).
try
spm('defaults' , 'fmri')
instead of
spm('defaults' , 'frmi')
Good luck,
Micheal.
Am 03.02.2011 17:57, schrieb Ali Gholami:
> Hi Maclaren,
>
> Thank you for your help! Still one thing I didn't understood. Do I need
> to install: http://sourceforge.net/projects/matlabbatch/ to have batch
> functionality? or just manipulating the spm_defaults.m is enough. There
> is a field there says: defaults.cmdline=0 and if it be turned to true,
> there should be no GUI running which in my case is not working.
>
> As an output when I run this command get the following error in
> Matlab:
>
>>> spm('defaults' , 'frmi')
> ??? Error using ==> spm at 481
> Unknown Modality.
>
> Error in ==> spm at 426
> Modality = spm('CheckModality',Modality);
>
>
> Best regards
>
> Ali
>
>
>
>
>
>
> On Thu, 2011-02-03 at 08:05 -0500, MCLAREN, Donald wrote:
>> help spm_jobman will give you a list of all of its options.
>> spm_jobman('initcfg') is needed first in most cases, then
>> spm_jobman('run_nogui',matlabbatch) or spm_jobman('run',matlabbatch)
>>
>> as for matlabbatch, I'm not sure if there is documentation for all of
>> its possible fields. The best way to understand the matlabbatch is to
>> make one subject with the gui and then modify the matlabbatch
>> structure. There is even a function in spm for doing this, but I have
>> never used it. Perhaps others might be able to point to good
>> documentation on the matlabbatch structure.
>>
>> Best Regards, Donald McLaren
>> =================
>> D.G. McLaren, Ph.D.
>> Postdoctoral Research Fellow, GRECC, Bedford VA
>> Research Fellow, Department of Neurology, Massachusetts General
>> Hospital and Harvard Medical School
>> Office: (773) 406-2464
>> =====================
>> This e-mail contains CONFIDENTIAL INFORMATION which may contain
>> PROTECTED HEALTHCARE INFORMATION and may also be LEGALLY PRIVILEGED
>> and which is intended only for the use of the individual or entity
>> named above. If the reader of the e-mail is not the intended recipient
>> or the employee or agent responsible for delivering it to the intended
>> recipient, you are hereby notified that you are in possession of
>> confidential and privileged information. Any unauthorized use,
>> disclosure, copying or the taking of any action in reliance on the
>> contents of this information is strictly prohibited and may be
>> unlawful. If you have received this e-mail unintentionally, please
>> immediately notify the sender via telephone at (773) 406-2464 or
>> email.
>>
>>
>>
>> On Thu, Feb 3, 2011 at 7:58 AM, Ali Gholami<[log in to unmask]> wrote:
>>> Thank you for the answer. Is there some documentation about installing
>>> the batch and how to use it?
>>>
>>> Best regards
>>> Ali
>>>
>>>
>>>
>>> On Thu, 2011-02-03 at 07:40 -0500, MCLAREN, Donald wrote:
>>>> spm_jobman
>>>>
>>>> However, you have to setup the matlabbatch by hand first if you want
>>>> to use it. Additionally, you can call each function individually from
>>>> the commandline as well. Some force a GUI if the input is not correct
>>>> while others will fail.
>>>>
>>>> On Thursday, February 3, 2011, Ali Gholami<[log in to unmask]> wrote:
>>>>> Hi
>>>>>
>>>>> Anyone knows if there's a command line mode in SPM?
>>>>>
>>>>>
>>>>> Best regards
>>>>> Ali Gholami
>>>>>
>>>>
>>>
>>>
>>>
>
--
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Dr. Michael Erb
Sektion f. experimentelle Kernspinresonanz des ZNS
Abteilung Neuroradiologie, Universitaetsklinikum
Hoppe-Seyler_Str. 3, D-72076 Tuebingen
Tel.: +49(0)7071/2987753 priv. +49(0)7071/61559
Fax.: +49(0)7071/294371
e-mail: <[log in to unmask]>
www: http://www.medizin.uni-tuebingen.de/nrad/sektion/
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
|