function

trimf - Triangular member function

Calling Sequence

y=trimf(x,par)

Parameters

Description

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

The trimf function is defined by:

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

See Also

member_functions ,   mfeval ,  

Author

Jaime Urzua Grez