mamfis
Mamdani fuzzy inference system
Description
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.
Creation
To create a Mamdani FIS object, use one of the following methods:
The
mamfis
function.If you have input and output training data (
inputData
andoutputData
, respectively), you can use thegenfis
function with the FCM clustering method.opt = genfisOptions('FCMClustering','FISType','mamdani'); fis = genfis(inputData,outputData,opt);
If you have a FIS file (
*.fis
) for a Mamdani system, you can use thereadfis
function.
Description
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
)
Input 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 |
convertToType2 | Convert type-1 fuzzy inference system into type-2 fuzzy inference system |
Examples
Alternative Functionality
App
You can interactively create a Mamdani FIS using the Fuzzy Logic Designer app. You can then export the system to the MATLAB workspace.