source:
proiecte/PPPP/ica/zeroMn.m
@
110
Last change on this file since 110 was 94, checked in by , 14 years ago | |
---|---|
File size: 275 bytes |
Line | |
---|---|
1 | %function Xzm = zeroMn(X) |
2 | %Returns a zero-mean form of the matrix X. Each row of Xzm will have |
3 | %zero mean, same as in spherex.m. For PCA, put the observations in cols |
4 | %before doing zeroMn(X). |
5 | |
6 | function Xzm = zeroMn(X); |
7 | |
8 | [N,P] = size(X); |
9 | mx=mean(X'); |
10 | Xzm=X-(ones(P,1)*mx)'; |
11 |
Note: See TracBrowser
for help on using the repository browser.