nanvar [statistics]
— Function File: [y] = nanvar(X [, opt [, dim]])

nanstd is identical to the var function except that NaN values are ignored.