OK, I'll check with the batch experts what the problem might be.
Vladimir
On Wed, Sep 5, 2012 at 11:45 AM, Martin Dietz <[log in to unmask]> wrote:
> Hi Vladimir,
>
> Yes, that is a sensible solution. I only ask because this way of running a batch works perfectly for other jobs, where you usually enter each 'UNDEFINED' input argument as part of an input cell array. It probably has to do arguments have to be entered.
>
> Best wishes
> Martin
>
>
>
> On 5 Sep2012, at 12:39 PM, Vladimir Litvak wrote:
>
> Hi Martin,
>
> I'm not familiar with this way of running batches, so maybe Guillaume
> or Volkmar can comment. But what I would usually do is either just put
> the fiducials in the right place in matlabbatch struct and then run
> the batch or save the batch as an .m file and then run the code in a
> for loop updating where necessary at each iteration.
>
> Best,
>
> Vladimir
>
> On Wed, Sep 5, 2012 at 11:35 AM, Martin Dietz <[log in to unmask]<mailto:[log in to unmask]>> wrote:
> Dear list,
>
> When running the modules Head Model Specification and Inverse Solution in batch mode using the commandline option
>
> spm_jobman('serial', matlabbatch, '', input{:});
>
> it doesn't seem to accept the fiducial coordinates under Coregistration, which are passed on as part of the input cell array as a 1x3 vector. Any suggestions what I could be doing wrong ?
>
> Here is the log:
>
> Failed 'M/EEG head model specification'
> Error using spm_eeg_inv_datareg_ui (line 55)
> At least 3 M/EEG fiducials are required for coregistration
> In file "/Users/martindietz/spm8/spm_eeg_inv_datareg_ui.m" (v4116), function "spm_eeg_inv_datareg_ui" at line 55.
> In file "/Users/martindietz/spm8/config/spm_cfg_eeg_inv_headmodel.m" (v4118), function "specify_headmodel" at line 227.
>
> Running 'M/EEG source inversion'
> Failed 'M/EEG source inversion'
> Error using spm_cfg_eeg_inv_invert>run_inversion (line 237)
> Forward model is missing for subject 1
> In file "/Users/martindietz/spm8/config/spm_cfg_eeg_inv_invert.m" (v4326), function "run_inversion" at line 237.
>
> The following modules did not run:
> Failed: M/EEG head model specification
> Failed: M/EEG source inversion
>
> Error using cfg_util (line 835)
> Job execution failed. The full log of this run can be found in MATLAB command window, starting with the lines (look for the line showing the exact
> #job as displayed in this error message)
> ------------------
> Running job #6
> ------------------
>
>
> Error in spm_jobman (line 208)
>
>
> Best wishes
> Martin
>
|