Dear SPM EEG Users (I realise there are few :D )
I was just reanalysing the oddball tutorial data for some experimenting and the downsampling gave me the Matlab error...
Error using .*
Matrix dimensions must agree.
Error in resample (line 75)
h = p*firls( L-1, [0 2*fc 2*fc 1], [1 1 0 0]).*kaiser(L,bta)' ;
Error in spm_eeg_downsample (line 125)
Dtemp(j,1:nsamples_new) = resample(d', P, Q)';
I am using the Matlab version 2011b and perhaps this has something to do with it since the tutorial data is probably fine and I have run the analysis.
I fixed the problem by setting the line 32 in spm_eeg_downsample to "flag_TBX = 0;" which then bypasses the signal processing toolbox.
So this mail is essentially just to inform users if they encounter this issue; and for any SPM technicians wanting other users to test SPM for EEG since its pretty bad advertising for the program if the tutorial data does not even run.
All the best,
Armand Mensen
|