Problem with statistical function(s) when it's input is matrix containing some NaN

17 visualizzazioni (ultimi 30 giorni)
Hi, I've imported a table from MS Excel to matlab using import wizard. There were some #DIV/0 in excel table, represented as NaN in matlab, which is correct. But, when i use function median and it's input is matrix with NaNs, median returns NaN. Is there any option how to make matlab to skip NaNs when calculating such task without writing any loop or thg like that?
Thanks!!!

Risposta accettata

Walter Roberson
Walter Roberson il 24 Gen 2012

Più risposte (0)

Categorie

Scopri di più su Data Preprocessing in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by