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 />

'lcclnk' is not recognized as an internal or external command,<br />

operable program or batch file.<br />

To include the command in the PATH environment variable, type the following<br />

in the DOS Command Window:<br />

matlabroot\sys\lcc\bin\lcclnk fismain.obj<br />

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

UNIX Platforms<br />

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

UNIX ® platform using the stand-alone fuzzy inference engine.<br />

1 Open a UNIX 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 UNIX Command Window, type the following command:<br />

cc -O -o fismain fismain.c -lm<br />

This command creates the fismain file in the<br />

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

The fis.c file is included in the fismain.c file;youdonothavetocompile<br />

it separately.<br />

3 At the MATLAB prompt, create an input data file using the following<br />

command:<br />

[x, y] = meshgrid(-5:5, -5:5);<br />

input_data = [x(:) y(:)];<br />

save fis_in input_data -ascii<br />

2-168

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

Saved successfully!

Ooh no, something went wrong!