31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

genfis3<br />

The input membership function type defaults to 'gaussmf', andthe<br />

output membership function type defaults to 'linear'.<br />

The following table summarizes the default inference methods.<br />

Inference Method<br />

AND<br />

OR<br />

Implication<br />

Aggregation<br />

Defuzzification<br />

Default<br />

prod<br />

probor<br />

prod<br />

sum<br />

wtaver<br />

Examples Example 1<br />

The following example uses the genfis3 function with the minimum<br />

number of arguments and generates a FIS using default values.<br />

Xin1 = 7*rand(50,1);<br />

Xin2 = 20*rand(50,1)-10;<br />

Xin = [Xin1 Xin2];<br />

Xout = 5*rand(50,1);<br />

fismat = genfis3(Xin,Xout);<br />

showfis(fismat) displays the contents of each field of the structure<br />

fismat.<br />

To plot the input membership functions, type<br />

[x,mf] = plotmf(fismat,'input',1);<br />

subplot(2,1,1), plot(x,mf);<br />

xlabel('Membership Functions for input 1');<br />

[x,mf] = plotmf(fismat,'input',2);<br />

subplot(2,1,2), plot(x,mf);<br />

xlabel('Membership Functions for input 2');<br />

4-40

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

Saved successfully!

Ooh no, something went wrong!