normalizeratio.m
来自「一款数据挖掘的软件」· M 代码 · 共 11 行
M
11 行
% NormalizeRatio: compute the ratio between two numbers except that it will
% output zero when the denominator is 0
%
function result = NormalizeRatio(Numerator, Denominator)
if (Denominator ~= 0)
result = Numerator / Denominator;
else
result = 0;
end;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?