Title: Fuzzy logic 5
1Fuzzy logic
Matlab Fuzzy Logic Toolbox
Aleksandar Rakic rakic_at_etf.rs
2Contents
- Introduction
- Graphical User Interface (GUI) Tools
- Example Tipper
3Introduction
MATLAB Fuzzy Logic Toolbox facilitates the
development simulation of fuzzy-logic systems
using
- graphical user interface (GUI) tools
- command line functionality
- simulations with Simulink / Fuzzy Logic
Toolbox blockset
- The tool can be used for building, testing and
simulating - Fuzzy Expert Systems
- Adaptive Neuro-Fuzzy Inference Systems (ANFIS)
4Graphical User Interface Tools
There are five primary GUI tools for building,
editing, and observing fuzzy inference systems in
the Fuzzy Logic Toolbox
5Graphical User Interface Tools
Fuzzy Inference System (FIS) Editor
Define number of input and output variables
Adjust fuzzy inference functions
Name and edit names of input, output variables
6Graphical User Interface Tools
Membership Function Editor
Select edit attributes of membership function
Display edit values of current variable
Name edit parameters of membership function
7Graphical User Interface Tools
Rule Editor
Rules automatically updated
Create and edit rules
8Graphical User Interface Tools
Rule Viewer
Shows how input variable is used in rules
Shows how output variable is used in rules shows
output of fuzzy system
9Graphical User Interface Tools
Surface Viewer
Shows output surface for any system output versus
any one (or two) inputs
Specify input and output variables
10Example Tipper
Golden rules for tipping
- IF the service is poor OR the food is rancid,
THEN tip is cheap (5). - 2. IF the service is good,
THEN tip is average (15). - 3. IF the service is excellent OR the food is
delicious, THEN tip is generous (25).
11Example Tipper
12Example Tipper
Fuzzy Inference System (FIS) Editor
input variables
output variable
13Example Tipper
Membership Function Editor
Select type of membership function
14Example Tipper
Rule Editor
15Example Tipper
Rule Viewer
Defuzzified output
16Example Tipper
Surface Viewer