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.

genfis2<br />

Example 3<br />

The following example specifies how to normalize the data in Xin and<br />

Xout into values in the range [0 1] for processing. Suppose Xin has two<br />

columns and Xout has one column, then the data in the first column of<br />

Xin are scaled from [-10 +10], the data in the second column of Xin are<br />

scaled from [-5 +5], and the data in Xout are scaled from [0 20].<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,[-10 -5 0; 10 5 20])<br />

See Also<br />

subclust, genfis1, genfis3, anfis<br />

4-38

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

Saved successfully!

Ooh no, something went wrong!