📄 subplus.m
字号:
function y = subplus(x)
%SUBPLUS Positive part.
%
% x , if x>=0
% y = subplus(x) := (x)_{+} = ,
% 0 , if x<=0
%
% returns the positive part of X. Used for computing truncated powers.
% Carl de Boor 26 nov 88; 6sep97 (switch to use of MAX)
% Copyright 1987-2003 C. de Boor and The MathWorks, Inc.
% $Revision: 1.14 $
y=max(x,zeros(size(x)));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -