Fuzzy Inference System Modeling
Fuzzy inference is the process of formulating input/output mappings using fuzzy logic. Fuzzy Logic Toolbox™ software provides command-line functions and an app for creating Mamdani and Sugeno fuzzy systems. For more information on fuzzy logic, seeWhat Is Fuzzy Logic?For more information on fuzzy inference, seeFuzzy Inference Process.
Apps
Fuzzy Logic Designer | Design and test fuzzy inference systems |
Functions
Create Fuzzy Systems
newfis |
Create new fuzzy inference system |
genfis |
Generate fuzzy inference system structure from data |
genfisOptions |
Option set for genfis command |
addvar |
Add variable to fuzzy inference system |
rmvar |
Remove variables from fuzzy inference system |
mam2sug |
Transform Mamdani Fuzzy Inference System into Sugeno Fuzzy Inference System |
getfis |
Get fuzzy system properties |
setfis |
Set fuzzy system properties |
Specify Membership Functions
Specify Fuzzy Rules
Evaluate and Visualize Fuzzy Systems
Import and Export
Construct Custom Fuzzy Systems
gaussmf |
Gaussian curve membership function |
gbellmf |
Generalized bell-shaped membership function |
trimf |
Triangular-shaped membership function |
dsigmf |
Difference between two sigmoidal membership functions |
gauss2mf |
Gaussian combination membership function |
pimf |
Π-shaped membership function |
psigmf |
Product of two sigmoidal membership functions |
sigmf |
Sigmoidal membership function |
smf |
S-shaped membership function |
trapmf |
Trapezoidal-shaped membership function |
zmf |
Z-shaped membership function |
plotmf |
Plot all membership functions for given variable |
evalmf |
Generic membership function evaluation |
mf2mf |
Translate parameters between membership functions |
defuzz |
Defuzzify membership function |
probor |
概率或 |
fuzarith |
Perform fuzzy arithmetic |
Topics
Fuzzy Logic Basics
Fuzzy logic uses linguistic variables, defined as fuzzy sets, to approximate human reasoning.
A fuzzy logic system is a collection fuzzy if-then rules that perform logical operations on fuzzy sets.
Fuzzy Inference
Fuzzy inference maps an input space to an output space using a series of fuzzy if-then rules.
What Is Mamdani-Type Fuzzy Inference?
In Mamdani systems, the output of each if-then rule is a fuzzy set. To determine a crisp output value, these fuzzy sets are aggregated and defuzzified.
What Is Sugeno-Type Fuzzy Inference?
In Sugeno systems, the output of each if-then rule is either constant or a linear function of the input variables. The final output value is the weighted average of all rule outputs.
Comparison of Sugeno and Mamdani Systems
Both Mamdani and Sugeno systems have several advantages depending on your specific application.
Build Fuzzy Inference Systems
Build Mamdani Systems Using Fuzzy Logic Designer
交互式地构造一个Mamdani fuzzy inference system using the Fuzzy Logic Designer app.
Build Mamdani Systems at the Command Line
Construct a Mamdani fuzzy inference system at the MATLAB®command line.
Build Mamdani Systems Using Custom Functions
You can replace the built-in membership functions and fuzzy inference functions with your own custom functions.