function

trapmf - Trapezoidal member function.

Calling Sequence

y=trapmf(x,par)

Parameters

Description

trapmf compute the trapezoidal member function of x with parameters [a,b,c,d] . This member function need a<b<=c<d .

The trapmf function is defined by:

Examples

x=linspace(0,1,100)';
y1=trapmf(x,[0 0.2 0.4 0.6]);
y2=trapmf(x,[0.2 0.5 0.6 0.9]);
y3=trapmf(x,[0.5 0.6 0.8 0.9 ]);
xbasc(); plot2d(x,[y1 y2 y3],leg="y1@y2@y3");
xtitle("Trapezoidal Member Function Example","x","mu(x)");

See Also

member_functions ,   mfeval ,  

Author

Jaime Urzua Grez