Documentation of sum2

Global Index (all files) (short | long) | Local Index (files in subdir) (short | long)

Function Synopsis

[sx, nsum] = sum2 ( x ) ;

Help text

 function [sx, nsum] = sum2 ( x ) ;

  Similar to SUM, but ignores missing values (NaNs).
  Output also the number of the valid values summed, so 
    that an average can be calculated directly.
  See also: MEAN2

Cross-Reference Information

This function calls This function is called by

Listing of function sum2

function [sx, nsum] = sum2 ( x ) ;