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.

Building <strong>Fuzzy</strong> Inference Systems Using Custom Functions<br />

• “Guidelines for Creating Custom AND and OR Functions” on page 2-67<br />

• “Guidelines for Creating Custom Implication Functions” on page 2-68<br />

• “Guidelines for Creating Custom Aggregation Functions” on page 2-68<br />

• “Guidelines for Creating Custom Defuzzification Functions” on page 2-69<br />

• “Steps for Specifying Custom Inference Functions” on page 2-69<br />

Guidelines for Creating Custom AND and OR Functions<br />

The custom AND and OR inference functions must operate column-wise on a<br />

matrix, in the same way as the MATLAB functions max, min, orprod.<br />

For a row or column matrix x, min(x) returns the minimum element.<br />

x=[1 2 3 4];<br />

min(x)<br />

ans =<br />

1<br />

For a matrix x, min(x) returns a row vector containing the minimum element<br />

from each column.<br />

x=[1 2 3 4;5 6 7 8;9 10 11 12];<br />

min(x)<br />

ans =<br />

1 2 3 4<br />

For N-D arrays, min(x) operates along the first non-singleton dimension.<br />

The function min(x,y) returns an array that is same size as x and y with the<br />

minimum elements from x or y. Either of the input arguments can be a scalar.<br />

Functions such as max, andprod operate in a similar manner.<br />

2-67

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

Saved successfully!

Ooh no, something went wrong!