trapmf
Trapezoidal membership function
Syntax
Description
This function computes fuzzy membership values using a trapezoidal membership
function. You can also compute this membership function using a fismf
object. For more information, see fismf Object.
This membership function is related to the trimf,
linsmf, and linzmf membership
functions.
Examples
Input Arguments
Output Arguments
Alternative Functionality
fismf Object
You can create and evaluate a fismf object that
implements the trapmf membership function.
mf = fismf("trapmf",P);
Y = evalmf(mf,X);Here, X, P, and Y correspond to
the x, params, and y
arguments of trapmf, respectively.
![Figure contains an axes object. The axes object with title trapmf, P = [1 5 7 8], xlabel x, ylabel Degree of Membership contains an object of type line.](../examples/fuzzy/win64/TrapezoidShapedMembershipFunctionExample_01.png)