Main Content

plotfis

Display fuzzy inference system

Description

FIS Object

example

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

FIS Tree

Since R2021b

example

plotfis(tree) displays a high-level diagram of a tree of interconnected FIS objects. The display shows the inputs, outputs, component FIS objects, and connections of the specified fistree object.

example

plotfis(tree,Legend="on") displays information about the inputs, outputs, and connections of the specified fistree object by adding a legend to the display.

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 contains 4 axes objects. Axes object 1 with xlabel service (3) contains 3 objects of type line. Axes object 2 with xlabel food (2) contains 2 objects of type line. Axes object 3 with xlabel tip (3) contains 3 objects of type line. Axes object 4 with xlabel tipper (3 ) contains an object of type text.

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.

Since R2021b

Load a FIS tree for a weighted tipper system with three inputs and one output.

load("weightedTipper")

Display the fistree object with a legend.

plotfis(weightedTipper,Legend="on")

In this display, free inputs are the inputs without any incoming connections. You must specify these inputs when you evaluate the FIS tree. The free and intermediate output values are returned when you evaluate the FIS tree.

You can also plot the FIS tree without a legend.

plotfis(weightedTipper)

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

Since R2021b

Tree of interconnected fuzzy inference systems, specified as a fistree object.

Alternative Functionality

App

You can interactively view the high-level structure of a FIS using the Fuzzy Logic Designer app.

Version History

Introduced before R2006a

expand all