Trapezoidal-shaped membership function
y = trapmf(x,[a b c d])
The trapezoidal curve is a function of a vector, x, and depends on four scalar parameters a, b, c, and d, as given by
or, more compactly, by
The parameters a and d locate the "feet" of the trapezoid and the parameters b and c locate the "shoulders."