trapezoidal_membership_func

Syntax

Description

This function returns the degree of membership of the state x to a set, whose membership function is trapezoidal. The shape of the trapezoidal membership function is specified by the params, namely (a, b, c, d). It will be triangular if b == c, and rectangular if a == b and c == d.

The membership function is

f(x)={0x<axacaax<c1cx<dbxbddx<b1bx

Examples

Input Arguments

params —— A tuple (a, b, c, d) that specifies the shape of the trapezoidal membership function, and a <= b <= c <= d.


x —— System states, specified as an array of numeric scalars of vectors.

Properties of Arguments

Name of the parametersIs optional?Source, dialog or input port?
paramsNoDialog
xNoInput port