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.

2 Tutorial<br />

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

In this section...<br />

“How to Build <strong>Fuzzy</strong> Inference Systems Using Custom Functions in the<br />

GUI” on page 2-58<br />

“Specifying Custom Membership Functions” on page 2-60<br />

“Specifying Custom Inference Functions” on page 2-66<br />

How to Build <strong>Fuzzy</strong> Inference Systems Using Custom<br />

Functions in the GUI<br />

When you build a fuzzy inference system, as described in “Overview of <strong>Fuzzy</strong><br />

Inference Process” on page 2-21, you can replace the built-in membership<br />

functions or inference functions, or both with custom functions. In this<br />

section, you learn how to build a fuzzy inference system using custom<br />

functions in the GUI. To learn how to build the system using custom functions<br />

at the command line, see “Specifying Custom Membership and Inference<br />

Functions” on page 2-81 in “Working from the Command Line” on page 2-72.<br />

To build a fuzzy inference system using custom functions in the GUI:<br />

1 Open the FIS Editor by typing fuzzy at the MATLAB prompt.<br />

2 Specify the number of inputs and outputs of the fuzzy system, as described<br />

in “The FIS Editor” on page 2-35.<br />

3 Create custom membership functions, and replace the built-in membership<br />

functions with them, as described in “Specifying Custom Membership<br />

Functions” on page 2-60.<br />

Membership functions define how each point in the input space is mapped<br />

to a membership value between 0 and 1.<br />

4 Create rules using the Rule Editor, as described in “The Rule Editor” on<br />

page 2-49.<br />

Rules define the logical relationship between the inputs and the outputs.<br />

2-58

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

Saved successfully!

Ooh no, something went wrong!