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.

genfis2<br />

Example 2<br />

The following example assumes the combined data dimension is 3.<br />

Suppose Xin hastwocolumnsandXout has one column, then 0.5 and<br />

0.25 are the ranges of influence for each of the Xin data dimensions, and<br />

0.3 is the range of influence for the Xout data dimension.<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 = genfis2(Xin,Xout,[0.5 0.25 0.3])<br />

4-37

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

Saved successfully!

Ooh no, something went wrong!