Home > NaN > center.m

center

PURPOSE ^

CENTER removes the mean

SYNOPSIS ^

function [i,S] = center(i,DIM,W)

DESCRIPTION ^

 CENTER removes the mean 

 [z,mu] = center(x,DIM,W)
   removes mean x along dimension DIM

 x    input data 
 DIM    dimension
    1: column
    2: row
    default or []: first DIMENSION, with more than 1 element
 W    weights to computed weighted mean (default: [], all weights = 1)
    numel(W) must be equal to size(x,DIM)

 features:
 - can deal with NaN's (missing values)
 - weighting of data 
 - dimension argument 
 - compatible to Matlab and Octave

 see also: SUMSKIPNAN, MEAN, STD, DETREND, ZSCORE

 REFERENCE(S):

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:02:45 by m2html © 2003