www.pudn.com > normalization.rar > remmean.m, change:2011-03-09,size:558b


function [newVectors, meanValue] = remmean(vectors);
%REMMEAN - remove the mean from vectors
%
% [newVectors, meanValue] = remmean(vectors);
%
% Removes the mean of row vectors.
% Returns the new vectors and the mean.
%
% This function is needed by FASTICA and FASTICAG

% @(#)$Id: remmean.m,v 1.2 2003/04/05 14:23:58 jarmo Exp $

newVectors = zeros (size (vectors));%11X270
meanValue = mean (vectors')';%11X1
newVectors = vectors - meanValue * ones (1,size (vectors, 2));%11X270-11X1*1X270
%newVectors = vectors - meanValue * ones (1,length (vectors, 2));