Warning: nanmean

Alexander Maye a.maye at UKE.DE
Fri Dec 11 14:58:11 CET 2009


Dear List!

If you install fieldtrip by adding the directory with subfolders, then read
on. I just noticed that my scripts were using fieldtrip's nanmean function
from the classification/utilities directory, which is not doing what it
promises: Instead of ignoring NaNs it considers them as zeros. While this
might make sense for the classification utilities, for most of the time it
does not.

If Matlab searches the fieldtrip folder only (no subfolders thereof), then the
correct nanmean from the statistics toolbox is used. I couldn't find any
instructions if the installation directory should be added to the Matlab path
with or without the subfolders, so everyone might want to check which
nanmean you use.

Good luck,

                            ALEX.





--
Pflichtangaben gemäß Gesetz über elektronische Handelsregister und Genossenschaftsregister sowie das Unternehmensregister (EHUG):

Universitätsklinikum Hamburg-Eppendorf
Körperschaft des öffentlichen Rechts
Gerichtsstand: Hamburg

Vorstandsmitglieder:
Prof. Dr. Jörg F. Debatin (Vorsitzender)
Dr. Alexander Kirstein
Prof. Dr. Dr. Uwe Koch-Gromus

----------------------------------
The aim of this list is to facilitate the discussion between users of the FieldTrip  toolbox, to share experiences and to discuss new ideas for MEG and EEG analysis. See also http://listserv.surfnet.nl/archives/fieldtrip.html and http://www.ru.nl/neuroimaging/fieldtrip.



More information about the fieldtrip mailing list