plotfis

Display fuzzy inference system

Syntax

plotfis(fis)

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

Display Fuzzy Inference System

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)

Display Tree of Fuzzy Inference Systems

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

  • fistree object — tree of interconnected fuzzy inference systems

Compatibility Considerations

expand all

Not recommended starting in R2018b

Introduced before R2006a