| Spline Toolbox | |
| Provide feedback about this page |
Syntax
Description
xp = subplus(x)
returns
, i.e., the positive part of x, which is x if x is nonnegative and 0 if x is negative. In other words, xp equals max(x,0). If x is an array, this operation is applied entry by entry.
Examples
Example 1. Here is a plot of the essential part of the subplus function, as generated by
Example 2. The following anonymous function describes the so-called hat function:
i.e., the spline also given by spmak(0:2,1), as the following plot shows.
| Provide feedback about this page |
![]() | stmak | titanium | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |