| Fuzzy Logic Toolbox | ![]() |
Save an FIS to the disk
writefis(fismat) writefis(fismat,'filename') writefis(fismat,'filename','dialog'
writefis saves a MATLAB workspace FIS structure, fismat, as a .fis file on disk.
writefis(fismat) opens a dialog box to assist with the naming and directory location of the file.
writefis(fismat,'filename') writes a .fis file corresponding to the FIS structure, fismat, to a disk file called filename.fis. No dialog box is used and the file is saved to the current directory.
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.
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')
| trimf | zmf | ![]() |
© 1994-2005 The MathWorks, Inc.