Hi,
This has been asked and answered before:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=SPM;fmQtUw;20090430181242%2B0100
Best,
Vladimir
On Fri, May 8, 2009 at 7:01 PM, Laurence Hunt <[log in to unmask]> wrote:
> Hi SPM gurus,
>
> I'm trying to set up forward models for the data I've collected so far, and
> keep encountering this bug when I select 'EEG BEM' as the head model after
> making meshes (I do subject-specific rather than template meshes for most
> subjects) and co-registration:
>
> =======
>
> ??? Attempted to access pvec(:,2); index out of bounds because
> size(pvec)=[0,5].
>
> Error in ==> fitsphere at 64
> C = -0.5*pvec(2:4) / pvec(1);
>
> Error in ==> triangle4pt at 62
> [center,radius] = fitsphere(sph_pnt);
>
> Error in ==> prepare_bemmodel at 167
> vol = triangle4pt(vol);
>
> Error in ==> ft_prepare_bemmodel at 11
> [varargout{1:nargout}] = funhandle(varargin{:});
>
> Error in ==> spm_eeg_inv_forward at 77
> vol = ft_prepare_bemmodel(cfg, vol);
>
> Error in ==> spm_eeg_inv_forward_ui at 46
> D = spm_eeg_inv_forward(D);
>
> =======
>
> Has this been encountered before, and does anyone have suggestions for what
> I might be doing wrong?
>
> Cheers,
> Laurence
>
> p.s. If it's any use, I'm trying to run it on Matlab 2008a for Intel mac,
> and collected simultaneous EEG/MEG using a Neuromag-306 setup. I'm selecting
> a single shell for the MEG head model, but this works fine when I do it with
> 3-shell sphere for EEG, so I imagine it's the EEG head model which is
> causing the problems.
>
> ===========================================
> Laurence Hunt, DPhil Student
> Centre for Functional MRI of the Brain (FMRIB),
> University of Oxford
> [log in to unmask]
> Phone: (+44)1865-(2)22738
> ===========================================
>
|