Mamdani fuzzy inference system

Use a `mamfis`

object to represent a type-1 Mamdani fuzzy
inference system (FIS).

As an alternative to a type-1 Mamdani system, you can create a:

Type-1 Sugeno system using a

`sugfis`

objectType-2 Mamdani system using a

`mamfistype2`

objectType-2 Sugeno system using a

`sugfistype2`

object

For more information on the different types of fuzzy inference systems, see Mamdani and Sugeno Fuzzy Inference Systems and Type-2 Fuzzy Inference Systems.

To create a Mamdani FIS object, use one of the following methods:

The

`mamfis`

function.If you have input and output training data (

`inputData`

and`outputData`

, respectively), you can use the`genfis`

function with the FCM clustering method.opt = genfisOptions('FCMClustering','FISType','mamdani'); fis = genfis(inputData,outputData,opt);

If you have a

`.fis`

file for a Mamdani system, you can use the`readfis`

function.

`fis = mamfis`

creates a Mamdani FIS with default property values.
To modify the properties of the fuzzy system, use dot notation.

`fis = mamfis(`

specifies FIS
configuration information or sets object properties using name-value pair arguments. You
can specify multiple name-value pairs. Enclose names in quotes.`Name,Value`

)

`addInput` | Add input variable to fuzzy inference system |

`removeInput` | Remove input variable from fuzzy inference system |

`addOutput` | Add output variable to fuzzy inference system |

`removeOutput` | Remove output variable from fuzzy inference system |

`addRule` | Add rule to fuzzy inference system |

`addMF` | Add membership function to fuzzy variable |

`removeMF` | Remove membership function from fuzzy variable |

`evalfis` | Evaluate fuzzy inference system |

`writeFIS` | Save fuzzy inference system to file |

`convertToType2` | Convert type-1 fuzzy inference system into type-2 fuzzy inference system |

You can interactively create a Mamdani FIS using the **Fuzzy Logic
Designer** app. You can then export the system to the MATLAB workspace.