Dear Ingmar,
There seems to be a typo in your script, see original here:
https://github.com/spm/MultimodalScripts/blob/master/code/scripted/master_script.m#L47
Best regards,
Guillaume.
On 12/05/2021 13:16, Ingmar Bonhoffer wrote:
> Hi all,
>
>
>
> I'm trying to run through the analysis steps for Richard Henderson's
> 'Multimodal Integration of M/EEG and f/MRI Data in SPM12' dataset. It
> instructs to use the following script to create subdirectories:
>
>
>
> BIDS = spm_BIDS('C:\Users\ibonh\Desktop\Henderson_Prac');
>
> subs = spm_BIDS(BIDS,'subjects', 'task', 'facerecognition');
>
> nsub = numel(subs);
>
> subdir = cellfun(s) [(@'sub-' s], subs, 'UniformOutput',false]; %#ok<NOPTS>
>
> spm-mkdir('C:\Users\ibonh\Desktop\Henderson_Prac', {'meg','func'});
>
> spm_mkdir('C:\Users\ibonh\Desktop\Henderson_Prac',subdir,
> {'meg','anat','func'});
>
>
>
>
>
> When I try to run the script the following error message appears;
>
>
>
> Error: File: Subdir.m Line: 4 Column: 21
>
> Invalid expression. When calling a function or indexing a variable, use
> parentheses. Otherwise, check for mismatched delimiters.
>
>
>
> Hoping you can help with this.
>
>
>
> Regards
>
>
>
--
Guillaume Flandin, PhD
Wellcome Centre for Human Neuroimaging
UCL Queen Square Institute of Neurology
London WC1N 3BG
|