Switch to unified view

a b/code/preprocessing/EEG/fastica/remmean.m
1
function [newVectors, meanValue] = remmean(vectors);
2
%REMMEAN - remove the mean from vectors
3
%
4
% [newVectors, meanValue] = remmean(vectors);
5
%
6
% Removes the mean of row vectors.
7
% Returns the new vectors and the mean.
8
%
9
% This function is needed by FASTICA and FASTICAG
10
11
% @(#)$Id$
12
13
newVectors = zeros (size (vectors));
14
meanValue = mean (vectors')';
15
newVectors = vectors - meanValue * ones (1,size (vectors, 2));