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