Hi Armand, and hello dear SPM-ers,
I am also facing the same problem here so I can confirm it, using the
spm-home made routine should be fine though as long as antialising
filters are in place. Plus, for some reason I am facing memory issues
that hadn t been an issue with earlier matlab versions (but I don't
remember which ones exactly). So, although I am on a 64bit windows 7
machine with 12gb of ram, I had to remove the casting to double to make
it work. Does anybody have similar experiences? From a quick look, the
spm_eeg_downsample did not change much over the last years, so maybe it
is just a memory allocation issue within the matlab routines,
Best,
Panagiotis
On 01/26/2012 07:35 PM, Armand Mensen wrote:
> 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
|