Warning: nanmean
Robert Oostenveld
r.oostenveld at FCDONDERS.RU.NL
Mon Dec 14 15:52:50 CET 2009
Dear Alex,
I also detected the buggy nanmean in the classification/utilities
directory. They were fixed last week by Marcel and now contain the
correct functions with a slightly different name. Please update your
fieldtrip version to the most recent one.
About the directory adding: please see http://fieldtrip.fcdonders.nl/faq/should_i_add_fieldtrip_with_all_subdirectories_to_my_matlab_path
(which I just created).
best regards,
Robert
On 11 Dec 2009, at 14:58, Alexander Maye wrote:
> 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.
>
----------------------------------
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