Triangular-shaped membership function
y = trimf(x,params) y = trimf(x,[a b c])
The triangular curve is a function of a vector,
and depends on three scalar parameters a, b,
and c, as given by
or, more compactly, by
The parameters a and c locate the "feet" of the triangle and the parameter b locates the peak.