Main Content

Linear S-shaped MF

Linear s-shaped saturation membership function

Since R2022a

  • Linear S-Shaped MF block

Libraries:
Fuzzy Logic Toolbox / Membership Functions

Description

The Linear S-Shaped MF block implements a linear s-shaped saturation membership function.

  • When a < b:

    f(x;a,b)={0,x<axaba,axb1,x>b}

  • When a = b:

    f(x;a,b)={0,x<a1,xa}

The parameters a and b control the foot and shoulder of the membership function, respectively. Setting a equal to b produces a crisp membership function.

This block is related to the Triangular MF, Trapezoidal MF, and Linear Z-shaped MF blocks.

Ports

Input

expand all

Input value for which to compute membership values, specified as a scalar or vector.

Output

expand all

Membership value, returned as a scalar or a vector. The dimensions of MF match the dimensions of x. Each element of MF is the membership value computed for the corresponding element of x.

Parameters

expand all

Leftmost point a of the transition area.

Programmatic Use

Block Parameter: a
Type: string, character vector
Default: "4"

Rightmost point b of the transition area.

Programmatic Use

Block Parameter: b
Type: string, character vector
Default: "6"

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

PLC Code Generation
Generate Structured Text code using Simulink® PLC Coder™.

Version History

Introduced in R2022a