mamfistype2
Interval type-2 Mamdani fuzzy inference system
Description
Use a mamfistype2 object to represent an interval type-2
Mamdani fuzzy inference system (FIS).
As an alternative to a type-2 Mamdani system, you can create a:
Type-2 Sugeno system using a
sugfistype2objectType-1 Mamdani system using a
mamfisobjectType-1 Sugeno system using a
sugfisobject
For more information on the different types of fuzzy inference systems, see Mamdani and Sugeno Fuzzy Inference Systems and Type-2 Fuzzy Inference Systems.
Creation
To create a type-2 Mamdani FIS object, use one of the following methods:
The
mamfistype2function.If you have input and output training data, you can create a type-1 FIS using the
genfisfunction with the FCM clustering method. You can then convert this FIS to a type-2 system usingconvertToType2.opt = genfisOptions('FCMClustering','FISType','mamdani'); fis1 = genfis(inputData,outputData,opt); fis = convertToType2(fis1);
If you have a FIS file (
*.fis) for a type-2 Mamdani system, you can use thereadfisfunction.
Description
fis = mamfistype2 returns a type-2 Mamdani FIS with default
property values. To modify the properties of the fuzzy system, use dot notation.
fis = mamfistype2( specifies FIS
configuration information or sets object properties using one or more name-value
arguments.Name=Value)
Name-Value Arguments
Properties
Object Functions
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 |
convertToType1 | Convert type-2 fuzzy inference system into type-1 fuzzy inference system |
Examples
Alternative Functionality
App
You can interactively create a type-2 Mamdani FIS using the Fuzzy Logic Designer app. You can then export the system to the MATLAB workspace.
Version History
Introduced in R2019b