Main Content

Pi-shaped MF

Pi-shaped membership function

  • Pi-shaped MF block

Libraries:
Fuzzy Logic Toolbox / Membership Functions

Description

The Pi-shaped MF block implements a pi-shaped membership function.

f(x;a,b,c,d)={0,xa2(xaba)2,axa+b212(xbb-a)2,a+b2xb1,bxc12(xcdc)2,cxc+d22(xdd-c)2,c+d2xd0,xd}

The parameters a and d control the left and right base points or feet of the curve. The parameters b and c control the left and right top points or shoulders of the curve.

This block is related to the Z-shaped MF and 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 Pi MF match the dimensions of x. Each element of Pi MF is the membership value computed for the corresponding element of x.

Parameters

expand all

Foot a of the left transition area.

Programmatic Use

Block Parameter: a
Type: string, character vector
Default: "-9"

Shoulder b of the left transition area.

Programmatic Use

Block Parameter: b
Type: string, character vector
Default: "-7"

Shoulder c of the right transition area.

Programmatic Use

Block Parameter: c
Type: string, character vector
Default: "2"

Foot d of the right transition area.

Programmatic Use

Block Parameter: d
Type: string, character vector
Default: "8"

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 before R2006a