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.

dsigmf<br />

Purpose<br />

Syntax<br />

Description<br />

Built-in membership function composed of difference between two<br />

sigmoidal membership functions<br />

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

The sigmoidal membership function used depends on the two<br />

parameters a and c and is given by<br />

( ) =<br />

+<br />

− −<br />

f x; a,<br />

c<br />

1<br />

1<br />

e ax ( c )<br />

The membership function dsigmf depends on four parameters, a1,<br />

c1, a2, andc2, and is the difference between two of these sigmoidal<br />

functions.<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=dsigmf(x,[5 2 5 7]);<br />

plot(x,y)<br />

xlabel('dsigmf, P=[5 2 5 7]')<br />

1<br />

0.75<br />

0.5<br />

0.25<br />

0<br />

0 2 4 6 8 10<br />

dsigmf, P = [5 2 5 7]<br />

4-13

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

Saved successfully!

Ooh no, something went wrong!