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

📄 nzsign.m

📁 matlabwsn定位仿真程序
💻 M
字号:
%| nzSIGN  returns the abs() of the first argument if the 2nd argument is
%|    is >= 0.  Otherwise returnd the -abs() of the first argument.
%| 
%| PURPOSE:  written to match "numerical recipes in C" function SIGN.
%|    Unlike matlab's 'sign', a 0.0 value does not force the result to 0.0
%|

function [rval] = nzSIGN(valueArgument, signArgument)

if signArgument >= 0, 
   rval = abs(valueArgument);
else
   rval = -abs(valueArgument);
end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -