convertToType1

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

Description

example

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

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)

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)

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.

Introduced in R2019b