noneg.m
来自「这是《Numerical Methods with MATLAB: Imple」· M 代码 · 共 7 行
M
7 行
function y = noneg(x)
% noneg Returns x if x>0, otherwise prints an error message and stops
if x<0
error('x is negative');
end
y = x;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?