Fuzzy Logic Toolbox    

The FIS Structure

The FIS structure is the MATLAB object that contains all the fuzzy inference system information. This structure is stored inside each GUI tool. Access functions such as getfis and setfis make it easy to examine this structure. You can also access the FIS structure information using the structure.field syntax (see the section, Working from the Command Line).

All the information for a given fuzzy inference system is contained in the FIS structure, including variable names, membership function definitions, and so on. This structure can itself be thought of as a hierarchy of structures, as shown in the following diagram.

.

You can generate a listing of information on the FIS using the showfis command, as shown below.

The list of command-line functions associated with FIS construction include getfis, setfis, showfis, addvar, addmf, addrule, rmvar, and rmmf.

Saving FIS Files on Disk

A specialized text file format is used for saving fuzzy inference systems to a disk. The functions readfis and writefis are used for reading and writing these files.

If you prefer, you can modify the FIS by editing its .fis text file rather than using any of the GUIs. You should be aware, however, that changing one entry may oblige you to change another. For example, if you delete a membership function using this method, you also need to make certain that any rules requiring this membership function are also deleted.

The rules appear in "indexed" format in a .fis text file. Here is the file tipper.fis.


  FIS Evaluation Working with Simulink