Fuzzy Logic Toolbox    

Chapter 3
Function Reference


Functions by Category

This section of the chapter contains brief descriptions of all the functions in the Fuzzy Logic Toolbox. The following tables contain the functions listed by topic.

GUI Tools

Function
Purpose
anfisedit
ANFIS Editor GUI.
fuzzy
Basic FIS Editor.
mfedit
Membership Function Editor.
ruleedit
Rule Editor and parser.
ruleview
Rule Viewer and fuzzy inference diagram.
surfview
Output Surface Viewer.
Membership Functions

Function
Purpose  
dsigmf
Difference of two sigmoid membership functions.
gauss2mf
Two-sided Gaussian curve membership function.
gaussmf
Gaussian curve membership function.
gbellmf
Generalized bell curve membership function.
pimf
Pi-shaped curve membership function.
psigmf
Product of two sigmoidal membership functions.
smf
S-shaped curve membership function.
sigmf
Sigmoid curve membership function.
trapmf
Trapezoidal membership function.
trimf
Triangular membership function.
zmf
Z-shaped curve membership function.
FIS Data Structure Management

Function
Purpose  
addmf
Add membership function to FIS.
addrule
Add rule to FIS.
addvar
Add variable to FIS.
defuzz
Defuzzify membership function.
evalfis
Perform fuzzy inference calculation.
evalmf
Generic membership function evaluation.
gensurf
Generate FIS output surface.
getfis
Get fuzzy system properties.
mf2mf
Translate parameters between functions.
newfis
Create new FIS.
parsrule
Parse fuzzy rules.
plotfis
Display FIS input-output structure.
plotmf
Plot all of the membership functions associated with a given variable.
readfis
Load FIS from disk.
rmmf
Remove membership function from FIS.
rmvar
Remove variable from FIS.
setfis
Set fuzzy system properties.
showfis
Display annotated FIS.
showrule
Display FIS rules.
writefis
Save FIS to disk.
Advanced Techniques

Function
Purpose
anfis
Training routine for a Sugeno-type FIS (MEX only).
fcm
Find clusters with FCM clustering.
genfis1
Generate FIS matrix using grid method.
genfis2
Generate FIS matrix using subtractive clustering.
subclust
Find cluster centers with subtractive clustering.
Simulink Blocks

Function
Purpose
fuzblock
Fuzzy logic controller blocks and demo blocks.
sffis
Fuzzy inference S-function.


Function
Purpose  
defuzzdm
Defuzzification methods.
fcmdemo
FCM clustering demo (2-D).
fuzdemos
GUI for Fuzzy Logic Toolbox demos.
gasdemo
ANFIS demo for fuel efficiency using subclustering.
juggler
Ball-juggler with Rule Viewer.
invkine
Inverse kinematics of a robot arm.
irisfcm
FCM clustering demo (4-D).
noisedm
Adaptive noise cancellation.
slbb
Ball and beam control (Simulink ).
slcp
Inverted pendulum control (Simulink ).
sltank
Water level control (Simulink).
sltankrule
Water level control with Rule Viewer (Simulink).
sltbu
Truck backer-upper (Simulink only).
Demos

 Bibliography Alphabetical List of Functions