?? correlation.m.svn-base
字號:
function corr = correlation(X, Y, ranking)
%Compute the correlations between columns of matrices
if (nargin < 2)
fprintf('%s\n', help(sprintf('%s', mfilename)));
error('Incorrect number of inputs - see above usage instructions.');
end
corr = sum(X.*Y, 1) ./ (sqrt(sum(X.^2, 1)) .* sqrt(sum(Y.^2, 1)));
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -