VAR calculates the variance. y = var(x [, opt[, DIM]]) calculates the variance in dimension DIM the default DIM is the first non-single dimension opt 0: normalizes with N-1 [default] 1: normalizes with N DIM dimension 1: VAR of columns 2: VAR of rows N: VAR of N-th dimension default or []: first DIMENSION, with more than 1 element W weights to compute weighted variance (default: []) if W=[], all weights are 1. number of elements in W must match size(x,DIM) usage: var(x) var(x, opt, DIM) var(x, [], DIM) var(x, W, DIM) var(x, opt, DIM, W) features: - can deal with NaN's (missing values) - weighting of data - dimension argument - compatible to Matlab and Octave see also: MEANSQ, SUMSQ, SUMSKIPNAN, MEAN, RMS, STD,

- center CENTER removes the mean
- sumskipnan SUMSKIPNAN adds all non-NaN values.
- var VAR calculates the variance.

- naninsttest NANINSTTEST checks whether the functions from NaN-toolbox have been
- var VAR calculates the variance.

Generated on Fri 22-May-2009 15:02:45 by