Main Content

convertToType1

Convert type-2 fuzzy inference system into type-1 fuzzy inference system

Description

fisT1 = convertToType1(fisT2) converts the type-2 fuzzy inference system fisT2 into a type-1 fuzzy inference system fisT1.

example

Examples

collapse all

Create a type-2 fuzzy inference system. For this example, Create a type-2 Mamdani FIS with two inputs, one output.

fisT2 = mamfistype2("NumInputs",2,"NumOutputs",1);

View the membership function for the first input variable.

plotmf(fisT2,"input",1)

Figure contains an axes object. The axes object with title Footprint of uncertainty (FOU), xlabel input1, ylabel Degree of membership contains 12 objects of type line, patch, text. These objects represent UpperMF, LowerMF, FOU.

Convert fisT2 into a type-1 fuzzy inference system.

fisT1 = convertToType1(fisT2);

View the converted membership functions for the first input variable.

plotmf(fisT1,"input",1)

Figure contains an axes object. The axes object with xlabel input1, ylabel Degree of membership contains 6 objects of type line, text.

Input Arguments

collapse all

Type-2 fuzzy inference system, specified as a mamfistype2 or sugfistype2 object.

Output Arguments

collapse all

Type-1 fuzzy inference system, returned as one of the following:

  • mamfis object when fisT2 is a mamfistype2 object

  • sugfis object when fisT2 is a sugfistype2 object

The properties of fisT1 match the corresponding properties of fisT2, except that each type-2 membership function is converted to a type-1 membership function. The parameters of each type-1 membership function in fisT1 match the upper membership function parameters of the corresponding type-2 membership function in fisT2.

Alternative Functionality

App

You can interactively convert a type-2 FIS into a type-1 FIS using the Fuzzy Logic Designer app. You can then export the system to the MATLAB® workspace.

Version History

Introduced in R2019b