/* Roger Jang, 20091205 */ #include #include #include "mex.h" #define INPUT prhs[0] /* Input Arguments */ #define OUTPUT plhs[0] /* Output Arguments */ /* Mean computation */ double vecNanMean(double *vec, int vecLen){ int i, validCount=0; double total=0; for (i=0; i