📄 normalize.m
字号:
function X = normalize(X)
% NORMALIZE Normalize the observations of a data matrix.
% X = NORMALIZE(X) centers and scales the observations of a data
% matrix such that each variable (column) has unit length.
%
% Author: Karl Skoglund, IMM, DTU, kas@imm.dtu.dk
[n p] = size(X);
X = center(X);
X = X./sqrt(ones(n,1)*sum(X.^2));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -