Standardisation about zero mean
1 visualizzazione (ultimi 30 giorni)
Vaclav Rimal il 25 Lug 2016
Given that your original matrix is Aorig, do the following:
Anew = Aorig - ones(size(Aorig,1),1)*mean(Aorig);
Note that you need the multiplication by vector of ones to obtain the correct size of the subtracted matrix. You could also use repmat but it is not that fast.