Hi Jasmine, sry for that, this bug has been fixed now and put into the updates. Thanks, Stefan > Hi all, > > In spm eeg, I performed all the preprocesses: Convert, > Montage,Prepare, Epoch, Downsample, Filter, Artefacts, and Averaging. > Then I was trying to analyze in sensor space and got the error message. > > > Bad channels: C21 > 8 rejected trials: [5 76 133 139 202 280 322 593] > mafdeMspm8_example.mat: Number of replications per contrast: > average rare: 117 trials, average standard: 475 trials > > ??? Error using ==> griddata at 50 > X and Y must be same length as Z or the lengths > of X and Y must match the size of Z. > > Error in ==> spm_eeg_convertmat2nifti3D at 117 > di(sub2ind([n n], x, y)) = griddata(Cel(:,1), > Cel(:,2), double(d(:, j, l)),x,y, 'linear'); > > Error in ==> spm_eeg_convert2images at 212 > spm_eeg_convertmat2nifti3D(S); > > Error in ==> spm at 875 > evalin('base',CBs{v-1}) > > ??? Error while evaluating uicontrol Callback > > > > > Thanks, > Jasmine Song > -- 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