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.

2 Tutorial<br />

The fis.c file contains all the necessary functions to perform the fuzzy<br />

inference process:<br />

• This file provides the 11 <strong>Fuzzy</strong> <strong>Logic</strong> Toolbox membership functions with<br />

their default settings.<br />

• You can add a new membership function or new reasoning mechanism<br />

by updating the fis.c file.<br />

The fismain executable code, generated after compiling the source codes,<br />

reads an input data file and a FIS structure file to simulate the output. The<br />

syntax for calling fismain is similar to its MEX-file counterpart evalfis,<br />

except that all matrices are replaced with files. To learn more about evalfis,<br />

see the evalfis function reference page.<br />

Example — Using the <strong>Fuzzy</strong> Inference Engine on<br />

Windows Platforms<br />

This example demonstrates how to simulate a fuzzy inference system on a<br />

Windows ® platform using the stand-alone fuzzy inference engine. In this<br />

example, you use the LCC C compiler shipped with MATLAB to compile the<br />

fuzzy inference engine source codes.<br />

1 Open a DOS Command Window and change the directory to<br />

matlabroot\toolbox\fuzzy\fuzzy.<br />

Tip You can find the root directory of your MATLAB installation by typing<br />

matlabroot at the MATLAB command prompt.<br />

2 In the DOS Command Window, type the following command:<br />

lcc -c fismain.c<br />

This command creates the fismain.obj object file in the<br />

matlabroot\toolbox\fuzzy\fuzzy directory.<br />

2-164

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

Saved successfully!

Ooh no, something went wrong!