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.

gauss2mf<br />

Purpose<br />

Syntax<br />

Description<br />

Gaussian combination membership function<br />

y = gauss2mf(x,[sig1 c1 sig2 c2])<br />

The Gaussian function depends on two parameters sig and c as given by<br />

−( x−c) 2<br />

2<br />

f x; σ,<br />

c e 2σ<br />

( ) =<br />

The function gauss2mf is a combination of two of these two parameters.<br />

The first function, specified by sig1 and c1, determines the shape of the<br />

left-most curve. The second function specified by sig2 and c2 determines<br />

the shape of the right-most curve. Whenever c1 < c2, thegauss2mf<br />

function reaches a maximum value of 1. Otherwise, the maximum value<br />

is less than one. The parameters are listed in the order:<br />

[sig1, c1, sig2, c2] .<br />

Examples<br />

x = (0:0.1:10)';<br />

y1 = gauss2mf(x, [2 4 1 8]);<br />

y2 = gauss2mf(x, [2 5 1 7]);<br />

y3 = gauss2mf(x, [2 6 1 6]);<br />

y4 = gauss2mf(x, [2 7 1 5]);<br />

y5 = gauss2mf(x, [2 8 1 4]);<br />

plot(x, [y1 y2 y3 y4 y5]);<br />

set(gcf, 'name', 'gauss2mf', 'numbertitle', 'off');<br />

4-27

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

Saved successfully!

Ooh no, something went wrong!