Main Content

Linear Z-shaped MF

Linear z-shaped saturation membership function

Since R2022a

  • Linear Z-Shaped MF block

Libraries:
Fuzzy Logic Toolbox / Membership Functions

Description

The Linear Z-Shaped MF block implements a linear z-shaped saturation membership function.

  • When a < b:

    f(x;a,b)={1,x<aaxab,axb0,x>b}

  • When a = b:

    f(x;a,b)={1,x<a0,xa}

The parameters a and b control the shoulder and foot 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 S-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