I am Charmie

メモとログ

2011-10-14から1日間の記事一覧

Normalize the columns/rows of a given matrix

A = randn(m, n); % for columns A = A ./ repmat(sqrt(sum(A.^2, 1)),m,1); % for rows A = A ./ repmat(sqrt(sum(A.^2, 2)),1,n);