| Fuzzy Logic Toolbox | ![]() |
Synopsis
writefis(fismat)writefis(fismat,'filename')writefis(fismat,'filename','dialog'
Description
writefis saves a MATLAB workspace FIS structure, fismat, as a .fis file on disk.
writefis(fismat) brings up 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') brings up 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
| trimf | zmf | ![]() |