📄 norml.m
字号:
% function x = norml(x,mode)
%
% copyright (c) 1998-2002 by Alexander Strehl
function x = norml(x,mode)
switch mode
case 0,
case 1,
x = diag(sparse(1./sum(abs(x),2))) * x;
case 2,
x = diag(sparse(1./sum((x.^2),2).^(1/2))) * x;
otherwise,
disp('norml: mode not supported');
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -