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.

Simulating <strong>Fuzzy</strong> Inference Systems Using the <strong>Fuzzy</strong> Inference Engine<br />

9 To verify that the fuzzy inference engine output matches the MATLAB<br />

MEX-file evalfis.m output, type the following command at the MATLAB<br />

prompt:<br />

fismat = readfis('mam21');<br />

matlab_out = evalfis(input_data, fismat);<br />

load fis_out<br />

max(max(matlab_out - fis_out))<br />

This command returns the following result:<br />

ans =<br />

4.9583e-013<br />

Thedifferenceresultsfromtherelative precision between the outputs.<br />

Including the lcc Command in the PATH Environment Variable<br />

When executing the lcc command to create the fismain.obj object file, you<br />

get the following error if the command and/or the path for the <br />

header files are not in the PATH environment variable:<br />

'lcc' 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\lcc -Imatlabroot\sys\lcc\include fismain.c<br />

Press Enter when prompted to Please enter the path for the<br />

header files.<br />

Including the lcclnk Command in the PATH Environment<br />

Variable<br />

When executing the lcclnk command to create the fismain.exe file, you get<br />

the following error if the command is not in the PATH environment variable:<br />

2-167

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

Saved successfully!

Ooh no, something went wrong!