⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 normalize.m

📁 最新的模式识别分类工具箱,希望对朋友们有用!
💻 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 + -