writefis

Save Fuzzy Inference System to file

Syntax

writefis(fismat)
writefis(fismat,'filename')
writefis(fismat,'filename','dialog') 

Description

writefis saves a MATLAB® workspace FIS structure, fismat, as a .fis file.

writefis(fismat) opens a dialog box to assist with the naming and folder location of the file.

writefis(fismat,'filename') writes a .fis file corresponding to the FIS structure, fismat, to a file called filename.fis. No dialog box appears, and the file is saved to the current folder.

writefis(fismat,'filename', 'dialog') opens a dialog box with the default name filename.fis supplied.

The extension .fis is only added to filename if it is not already included in the name.

Examples

a = newfis('tipper');
a = addvar(a,'input','service',[0 10]);
a = addmf(a,'input',1,'poor','gaussmf',[1.5 0]);
a = addmf(a,'input',1,'good','gaussmf',[1.5 5]);
a = addmf(a,'input',1,'excellent','gaussmf',[1.5 10]);
writefis(a,'my_file')

See Also

Was this topic helpful?