Fuzzy Logic Toolbox | ![]() ![]() |
Triangular-shaped built-in membership function.
Synopsis
y = trimf(x,params) y = trimf(x,[a b c])
Description
The triangular curve is a function of a vector, x
, and depends on three scalar parameters a, b, and c, as given by
The parameters a and c locate the "feet" of the triangle and the parameter c locates the peak.
Examples
x=0:0.1:10; y=trimf(x,[3 6 8]); plot(x,y) xlabel('trimf, P=[3 6 8]')![]()
See Also
dsigmf
, gaussmf
, gauss2mf
, gbellmf
, evalmf
, mf2mf
, pimf
, psigmf
, sigmf
, smf
, trapmf
![]() | trapmf | writefis | ![]() |