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

This command saves the input data as a 121-by-2 matrix in the ASCII<br />

file fis_in in your current working directory. Each row of the matrix<br />

represents an input vector.<br />

Tip You can find your current working directory in the Current Directory<br />

field in the MATLAB desktop toolbar.<br />

4 Copy the FIS structure file mam21.fis from the<br />

matlabroot\toolbox\fuzzy\fuzdemos directory to your current working<br />

directory.<br />

5 Copy the fismain file from the matlabroot\toolbox\fuzzy\fuzzy directory<br />

to your current working directory.<br />

6 In the UNIX Command Window, change the directory to your current<br />

working directory, and type the following executable command:<br />

fismain fis_in mam21.fis<br />

This command uses the data file fis_in and the FIS structure file<br />

mam21.fis and generates 121 outputs on your screen.<br />

Tip You can also direct the outputs to another file using the following<br />

command in the DOS Command Window:<br />

fismain fis_in mam21.fis > fis_out<br />

This command saves the output data fis_out as a 121-by-1 matrix in your<br />

current working directory. Each row of the output matrix represents an<br />

output vector.<br />

2-169

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

Saved successfully!

Ooh no, something went wrong!