📄 center.m
字号:
function X = center(X)
% CENTER Center the observations of a data matrix.
% X = CENTER(X) centers the observations of an nxp data matrix where n
% is the number of observations and p is the number of variables.
%
% Author: Karl Skoglund, IMM, DTU, kas@imm.dtu.dk
[n p] = size(X);
X = X - ones(n,1)*mean(X);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -