📄 normalize.m
字号:
% ---------------------------------------------------------------- % FUNCTION normalize% ---------------------------------------------------------------- % normalizes the rows of a matrix% Usage: % outmat = normalize(inmat)% Input:% inmat = column vector of row vectors% Output:%% __________________________% Author: Vittorio Castelli% Copyright IBM T. J. Watson Research Center% January 27, 1995; Last modified: January 27, 1995function outmat = normalize(inmat);[M,N] = size(inmat);aaa = ones(1,N);outmat = inmat.^2;tempmat = sqrt(sum(outmat'));tempmat = tempmat';tempmat = tempmat.^(-1);tempmat = tempmat*aaa;outmat = inmat.*tempmat;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -