zmf

Z-shaped membership function

Syntax

y = zmf(x,[a b]) 

Description

This spline-based function of x is so named because of its Z-shape. The parameters a and b locate the extremes of the sloped portion of the curve as given by.

f(x;a,b)={1,xa12(xaba)2,axa+b22(xbb-a)2,a+b2xb0,xb

Examples

expand all

Z-Shaped Membership Function

x = 0:0.1:10;
y = zmf(x,[3 7]);
plot(x,y)
xlabel('zmf, P=[3 7]')
ylim([-0.05 1.05])

Was this topic helpful?