<< tnorm sciFLT trimf >>

sciFLT >> sciFLT > trapmf

trapmf

Trapezoidal member function.

Calling Sequence

y=trapmf(x,par)

Parameters

x:

matrix of real.

par=[a,b,c,d]:

4 element row vector of parameters.

Description

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

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 ]);
scf();clf(); plot2d(x,[y1 y2 y3],leg="y1@y2@y3");
xtitle("Trapezoidal Member Function Example","x","mu(x)");

See also

Authors


Report an issue
<< tnorm sciFLT trimf >>