Von: "liang wang" <[log in to unmask]>
Gesendet: 11.11.2011 02:28:13
An: [log in to unmask]
Betreff: [SPM] a bug for spm_eeg_tf_rescale.m?
Hi,
I think there is a bug for 'LogR' option in spm_eeg_tf_rescale.m
Starting at line 97 in the original code
*************************************
xbase=mean(log10(xbase(:,:,inds)),3);
D(:,:,:,c)= 10*(x - repmat(xbase,[1 1 D.nsamples 1]));
******************************************
the variable 'x' is not converted to dB, compared with the variable 'xbase'. Should you have to add "x = log10(x)" before line 97 to correct it? Thanks.
Please let me know if I am wrong.
Best,
Liang
--
Liang Wang, PhD
Neuroscience of Attention and Perception Laboratory
Princeton Neuroscience Institute
Princeton University
Princeton, NJ, 08540
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192 |