plotfis

Display fuzzy inference system

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

Create a fuzzy inference system (FIS). For this example, read the FIS from the tipper.fis file.

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.

Create a fistree object 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 a fistree object, 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:

  • mamfis object — Mamdani fuzzy inference system

  • sugfis object — Sugeno fuzzy inference system

  • mamfistype2 object — Type-2 Mamdani fuzzy inference system

  • sugfistype2 object — Type-2 Sugeno fuzzy inference system

  • fistree object — Tree of interconnected fuzzy inference systems

Compatibility Considerations

expand all

Warns starting in R2019b

Introduced before R2006a