Plots a 2D graph of all membership functions in a variable.

Description

Plots a 2D graph of all membership functions from the specified variable which must be part of a FIS object.

Usage

1
plotMF(FIS, varType, varIndex)

Arguments

FIS

Requires an existing FIS as an argument.

varType

Can be either 'input' or 'output', representing the type of variable.

varIndex

A numerical integer, representing the index of the input or output variable whose membership functions shall be plotted (base 1).

Value

A two dimensional graph displaying all the membership functions of a given variable.

Author(s)

Craig Knott, Luke Hovell, Nathan Karimian

Examples

1
2
FIS <<- tippertest()
plotMF(FIS, "input", 1)