Print

Print


great, thanks

Torben


Den 30/04/2009 kl. 19.12 skrev Vladimir Litvak:

> Dear Torben (and Kevin who also reported this bug recently),
>
> This is a problem introduced shortly before the SPM8 release due to
> our attempt to remove the dependency on optimization toolbox. Putting
> the two attached files in external/fieldtrip/private should solve the
> problem. Please let me know if it doesn't. The files will be included
> in the next SPM8 update.
>
> Best,
>
> Vladimir
>
>
> On Thu, Apr 30, 2009 at 9:41 AM, Torben Ellegaard Lund
> <[log in to unmask]> wrote:
>> Dear List
>>
>> I have been analysing the MMN example dataset as described in the spm
>> manual. When I get to the forward modelling I get the following  
>> error after
>> having selected “EEG-BEM” in response to the “Which EEG head model?”
>> question:
>>
>>
>>
>>
>> using the pre-specified triangulated boundaries
>> determining source compartment (1)
>> determining skin compartment (3)
>> not using the isolated source approach
>> ??? 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);
>>
>> Error in ==> spm_eeg_inv_imag_api>Forward_Callback at 87
>> handles.D = spm_eeg_inv_forward_ui(handles.D);
>>
>> Error in ==> spm_eeg_inv_imag_api at 53
>>       feval(varargin{:}); % FEVAL switchyard
>>
>> ??? Error while evaluating uicontrol Callback
>>
>>>>
>>>>
>>
>>
>>
>> Does anybody have any suggestions?
>>
>>
>> Best
>> Torben
>>
>>
>>
>> Torben Ellegaard Lund
>> Assistant Professor, PhD
>> The Danish National Research Foundation's Center of Functionally  
>> Integrative
>> Neuroscience (CFIN)
>> Aarhus University
>> Aarhus University Hospital
>> Building 10G, 5th floor
>> Noerrebrogade 44
>> 8000 Aarhus C
>> Denmark
>> Phone: +4589494380
>> Fax: +4589494400
>> http://www.cfin.au.dk
>> [log in to unmask]
>>
> <triangle4pt.m><fitsphere.m>