Documentation

Fuzzy Inference System Modeling

Build Mamdani and Sugeno fuzzy inference systems

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

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
mfedit Open Membership Function Editor
addmf Add membership function to fuzzy inference system
rmmf Remove membership function from fuzzy inference system
ruleedit Open Rule Editor
ruleview Open Rule Viewer
addrule Add rule to fuzzy inference system
showrule Display fuzzy inference system rules
parsrule Parse fuzzy rules
evalfis Perform fuzzy inference calculations
plotfis Plot Fuzzy Inference System
surfview Open Surface Viewer
gensurf Generate fuzzy inference system output surface
gensurfOptions Option set for gensurf command
showfis Display annotated Fuzzy Inference System
readfis Load Fuzzy Inference System from file
writefis Save fuzzy inference system to file
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

What Is Fuzzy Logic?

Fuzzy logic uses linguistic variables, defined as fuzzy sets, to approximate human reasoning.

Foundations of Fuzzy Logic

A fuzzy logic system is a collection fuzzy if-then rules that perform logical operations on fuzzy sets.

Fuzzy Inference

Fuzzy Inference Process

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.

Was this topic helpful?