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.

writefis<br />

Purpose<br />

Syntax<br />

Description<br />

Examples<br />

See Also<br />

Save <strong>Fuzzy</strong> Inference System to file<br />

writefis(fismat)<br />

writefis(fismat,'filename')<br />

writefis(fismat,'filename','dialog')<br />

writefis saves a MATLAB workspace FIS structure, fismat, asa.fis<br />

file.<br />

writefis(fismat) opens a dialog box to assist with the naming and<br />

directory location of the file.<br />

writefis(fismat,'filename') writes a .fis file corresponding to the<br />

FIS structure, fismat, toafile called filename.fis. No dialog box<br />

appears, and the file is saved to the current directory.<br />

writefis(fismat,'filename', 'dialog') opens a dialog box with the<br />

default name filename.fis supplied.<br />

The extension .fis is only added to filename if it is not already<br />

included in the name.<br />

a = newfis('tipper');<br />

a = addvar(a,'input','service',[0 10]);<br />

a = addmf(a,'input',1,'poor','gaussmf',[1.5 0]);<br />

a = addmf(a,'input',1,'good','gaussmf',[1.5 5]);<br />

a = addmf(a,'input',1,'excellent','gaussmf',[1.5 10]);<br />

writefis(a,'my_file')<br />

readfis<br />

4-92

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

Saved successfully!

Ooh no, something went wrong!