Hi Johannes,
Which matlab version are you running? (This might be due to a matlab
compatibility problem.)
Can you replace line 259 by:
d(j, :) = d(j, :) + squeeze(D{k}(j, :, ind));
and try again?
Thx, Stefan
> Dear SPMers,
> I encountered an error message in SPM8b when trying to compute a Grand
> average ERP over 4 subjects:
>
>
>>> Ok: All data files have the same dimensions.
>>>
> ??? Error using ==> plus
> Number of array dimensions must match for binary array op.
>
> Error in ==> spm_eeg_grandmean at 259
> d(j, :) = d(j, :) + D{k}(j, :, ind);
>
> Error in ==> spm at 876
> evalin('base',CBs{v-1})
>
> ??? Error using ==> spm('PopUpCB',gcbo)
> Error using ==> plus
> Number of array dimensions must match for binary array op.
>
> ??? Error while evaluating uicontrol Callback
>
> All m*.mat files have the same number of conditions and the labels match.
> Does anyone have an idea what could have gone wrong?
>
> Thanks in advance,
> Johannes
>
>
>
--
Dr. Stefan Kiebel
Wellcome Trust Centre for Neuroimaging
Institute of Neurology, UCL
12 Queen Square
London WC1N 3BG
Phone: (+44) 20 7833 7478
Fax: (+44) 20 7813 1420
|