Print

Print





Try:
addpath(genpath('spm8path'))
load file.mat
spm_jobman('run',matlabbatch)



Best Regards, Donald McLaren
=================
D.G. McLaren
University of Wisconsin - Madison
Neuroscience Training Program
Office: (608) 520-0586
=====================
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 (608) 520-0586 or email.



On Mon, Feb 1, 2010 at 9:56 PM, Amir H Javadi <[log in to unmask]> wrote:
Hi :-)

I wonder if there is any method/function to run batch files without GUIDE (pressing the "play" button in "Batch Editor" figure). I have created a .mat file which contains the variable "matlabbatch". It is created simply by "Batch Editor" figure. I tried to understand "cfg_util" method, but it is too complicated. I can't accumulate "job"... I want to run my "batch" somewhere within my own code. Very many thanks.

Have a good time :-)
Amir