<< trapmf sciFLT zmf >>

sciFLT >> sciFLT > trimf

trimf

Triangular member function

Calling Sequence

y=trimf(x,par)

Parameters

x:

matrix of real.

par=[a,b,c]:

3 element row vector of parameters.

Description

trimf compute the triangular member function of x with parameters [a,b,c]. This member function need a&lt;b&lt;c.

Examples

x=linspace(0,1,100)';
y1=trimf(x,[0 0.2 0.4]);
y2=trimf(x,[0.2 0.5 0.9]);
y3=trimf(x,[0.5 0.6 0.9 ]);
scf();clf();
plot2d(x,[y1 y2 y3],leg="y1@y2@y3");
xtitle("Triangular Member Function Example","x","mu(x)");

See also

Authors


Report an issue
<< trapmf sciFLT zmf >>