Dear Vladimir,
I checked and my dataset consists of 61 EEG-channels and there are no
different channels present.
Best,
Nils
__________________
Dipl.-Math. Nils Rosjat
Universität zu Köln
Biozentrum
Zülpicher Straße 47b
50674 Köln
[log in to unmask]
Zitat von Vladimir Litvak <[log in to unmask]>:
> Dear Nils,
>
> It's probably something much more trivial, for instance that your EEG
> dataset has more channels than just EEG and when trying to assign to all
> channels you get a mismatch.
>
> Best,
>
> Vladimir
>
> On Thu, Oct 23, 2014 at 12:59 PM, Nils Rosjat <[log in to unmask]> wrote:
>
>> Dear Vladimir,
>>
>> when I just change the filename to one of my EEG datasets then I'll get
>> the following error:
>>
>> Error using mat2file
>> Subscripted assignment dimension mismatch.
>>
>> Error in file_array/subsasgn>subfun (line 158)
>> mat2file(sobj,dat,va{:});
>>
>> Error in file_array/subsasgn (line 85)
>> subfun(sobj,double(dat),args{:});
>>
>> Error in meeg/subsasgn (line 30)
>> this.data = subsasgn(this.data, subs, dat);
>>
>> Error in simdip (line 105)
>> D(:,:,1) = L*X; % Forward model
>>
>> I thought this might occur, because the gain matrix that is computed in
>> line 74 [L D] = spm_eeg_lgainmat(D); is expecting to have MEG input.
>>
>> Do you have any idea where this error comes from?
>>
>> Best,
>> Nils
>> __________________
>> Dipl.-Math. Nils Rosjat
>> Universität zu Köln
>> Biozentrum
>> Zülpicher Straße 47b
>> 50674 Köln
>> [log in to unmask]
>>
>>
>> Zitat von Vladimir Litvak <[log in to unmask]>:
>>
>>
>> Dear Nils,
>>>
>>> From a brief look, this script shouldn't require any modifications for
>>> EEG.
>>> You should just use an EEG dataset with an EEG head model as input.
>>>
>>> Best,
>>>
>>> Vladimir
>>>
>>> On Thu, Oct 23, 2014 at 12:30 PM, Nils Rosjat <[log in to unmask]>
>>> wrote:
>>>
>>> Dear SPM experts,
>>>>
>>>> I am trying to build a dataset with some artificial EEG data.
>>>>
>>>> In the paper "Algorithmic procedures for Bayesian MEG/EEG source
>>>> reconstruction in SPM" I found the "simdip" script that is doing just
>>>> what
>>>> I want for MEG data. Is there any easy way to change the code to produce
>>>> EEG data?
>>>>
>>>> Best,
>>>> Nils
>>>> __________________
>>>> Dipl.-Math. Nils Rosjat
>>>> Universität zu Köln
>>>> Biozentrum
>>>> Zülpicher Straße 47b
>>>> 50674 Köln
>>>> [log in to unmask]
>>>>
>>>>
>>>
>>
>>
>>
>
|