Lec.9
Lec.9
ALMUGHTARIBEEN UNIVERSITY
College of Engineering
Cnt 521
Fuzzy Logic Control
Lecture 9
[email protected]
1
Lecture Outline
Introduction
ALMUGHTARIBEEN UNIVERSITY
b a
trapezoid ( x, a, b, c, d ) 1 bxc
d x cxd
d c
𝑇𝑟𝑎𝑝𝑒𝑧𝑜𝑖𝑑 𝑥, 10,20,60,95 0 xd
triangle( x, a, b, c) cbxa
c b bxc
0 cx
𝑇𝑟𝑖𝑎𝑛𝑔𝑙𝑒 𝑥, 20,60,80
In MATLAB type
» fuzzy
This opens the GUI. Activate the input window.
Almughtaribeen University – [ Abusabah I. A. Ahmed]
11
Car Driving
Give a name to the fuzzy input variable. Call it distance.
Click Close.
ALMUGHTARIBEEN UNIVERSITY
Define the name of the output, break, and its range. Use three
membership functions: hard, medium and no. The following
GUI display is obtained.
Open View menu and click Edit rules. Then the following
display opens.
seen below.
other for long distance. Our simple, rule base is now complete.
Click Close.
the left the output, brake side. There are three rules and the
corresponding triangular membership functions
displayed. In the right-hand side lower corner is the result of fuzzy
reasoning. At this point it is a fuzzy set. Applying defuzzification
method, in the figure center of gravity has been chosen, a crisp
value is obtained.