31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

psigmf<br />

Purpose<br />

Syntax<br />

Description<br />

Built-in membership function composed of product of two sigmoidally<br />

shaped membership functions<br />

y = psigmf(x,[a1 c1 a2 c2])<br />

The sigmoid curve plotted for the vector x depends on two parameters<br />

a and c as given by<br />

1<br />

f( x; a, c)<br />

=<br />

+<br />

− −<br />

1<br />

e ax ( c )<br />

psigmf is simply the product of two such curves plotted for the values<br />

of the vector x<br />

f 1<br />

(x; a 1<br />

, c 1<br />

)×f 2<br />

(x; a 2<br />

, c 2<br />

)<br />

The parameters are listed in the order [a 1<br />

c 1<br />

a 2<br />

c 2<br />

].<br />

Examples<br />

x=0:0.1:10;<br />

y=psigmf(x,[2 3 -5 8]);<br />

plot(x,y)<br />

xlabel('psigmf, P=[2 3 -5 8]')<br />

1<br />

0.75<br />

0.5<br />

0.25<br />

0<br />

0 2 4 6 8 10<br />

psigmf, P = [2 3 −5 8]<br />

See Also<br />

dsigmf, gaussmf, gauss2mf, gbellmf, evalmf, mf2mf, pimf, sigmf, smf,<br />

trapmf, trimf, zmf<br />

4-62

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!