How to remove mean from matrix values?
5 ビュー (過去 30 日間)
古いコメントを表示
Hi all. I have M(80x200) matrix. I found mean A=mean(M) for every column so I have A(1x200) matrix. Now I want to subtract means from each values on every columns.
I guess if I turn A matrix into (80x200) then I can M-A
0 件のコメント
採用された回答
Geoff Hayes
2016 年 5 月 14 日
jack - you can use a for loop to subtract the mean matrix A from each row of M. Something like
for k=1:80
M(k,:) = M(k,:) - A;
end
M = M - repmat(A,80,1);
Try either of the above and see what happens!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!