Main Content

plotfis

Display fuzzy inference system

Syntax

Description

plotfis(fis)displays a high-level diagram of a fuzzy inference system (FIS). The center of the display shows the name, type, and rule count for the FIS. The input variables with associated membership functions are displayed to the right, and the outputs with their associated membership functions are displayed on the left.

Examples

collapse all

克雷亚te a fuzzy inference system (FIS). For this example, read the FIS from thetipper.fisfile.

fis = readfis('tipper');

Display the fuzzy system.

plotfis(fis)

Figure showing the basic properties of the fuzzy inference system

The figure shows the FIS name and type, along with the number of rules. Also, for each input and output variable, the name and membership function configuration are shown.

克雷亚te afistreeobject from a pair of fuzzy inference systems.

fis1 = mamfis('Name',“fis1”,'NumInputs',2,'NumOutputs',1); fis2 = sugfis('Name','fis2','NumInputs',2,'NumOutputs',1); con1 = ["fis1/output1""fis2/input1"]; con2 = ["fis1/input1""fis1/input2"]; tree = fistree([fis1 fis2],[con1; con2]);

Display the tree of fuzzy inference systems.

plotfis(tree)
FIS Names: fis1 fis2 Connections: From To ------------ ----------- fis1/output1 fis2/input1 fis1/input1 fis1/input2 Inputs: fis1/input1 fis2/input2 Outputs: fis2/output1

For afistreeobject, this function shows a description of the system in the Command Window instead of a figure.

Input Arguments

collapse all

Fuzzy inference system, specified as one of the following:

  • mamfisobject — Mamdani fuzzy inference system

  • sugfisobject — Sugeno fuzzy inference system

  • mamfistype2对象- 2型Mamdani模糊推理系统

  • sugfistype2object — Type-2 Sugeno fuzzy inference system

  • fistreeobject — Tree of interconnected fuzzy inference systems

Compatibility Considerations

expand all

Warns starting in R2019b

Introduced before R2006a