MATLAB :
1-....................................................................................................................31-1-..............................................................61-2-...............................................................................................................6
2-...........................................................................................82-1-:...........................................................................................................102-2-:.........................................................................102-3-:................................................................................................122-4-:..............................................................................................13
3-.................................................................................................153-1-.......................................................................183-2-................................................................20
4-................................................................................................235-Rule Surface.............................................................................................276-...........................................................................................................28
matlab1.ir
MATLAB :
1- .
.
.
.
.
.
.
fuzzy1965
.
fuzzy
.fuzzy
MATLAB :
fuzzy
fuzzy
.
70
.feed back) (
.
: ...
.
fuzzy .
.
fuzzy
.fuzzy .
fuzzy
MATLAB :
.
.fuzzy
.
.
"""
")
(
.
fuzzy
1-
) (feed back
.
2-fuzzy
.
3-fuzzy
.
.
4-fuzzy
MATLAB :
fuzzy
fuzzy :"
".
5-fuzzy
.
1973fuzzy
.
: .fuzzy
. :)(
)()()() .(
.
) ()(
.
fuzzy
.fuzzy
fuzzy .
MATLAB :
fuzzy .fuzzy
100 .
.
fuzzy.
fuzzy
fuzzy
.fuzzy
.fuzzy
.fuzzy
.
fuzzy
fuzzyfuzzyfuzzy
fuzzy. ...
fuzzy
.fuzzy
.
MATLAB :
2 - ..
1. If the service is poor or the food is rancid, then tip is cheap.
2. If the service is good, then tip is average.
3. If the service is excellent or the food is delicious, then tip is generous.
MATLAB.
>> fuzzy.
MATLAB Workspace
.
.
MATLAB :
:
1 :.
2:
.
3:.
4:
.
5:.
6:.
7:.
8:.
MATLAB :
) (.
>> fuzzy tipper
.
.
.
>> fuzzy
2 .
.
.
.
.
1. If the service is poor or the food is rancid, then tip is cheap.
1 ..
2. If the service is good, then tip is average.
2 .
3. If the service is excellent or the food is delicious, then tip is generous.
1 ..
fuzzy.
MATLAB :
. .
..
MATLAB :
input2 ..
.
.
.
Name.
.
Input1service.
MATLAB :
Input2foodoutput1tip .
.
.
MATLAB :
. .(tipper)
.
MATLAB :
3-.
.
.
MATLAB :
.
service.
.
MATLAB :
1 :.
2 :
.
3 :.
4: .
.
5 :.
6:.
7:.
8 :.
MATLAB :
9:.
10:.
11:.
.
.
MATLAB :
.
.
MATLAB :
..
2.
MATLAB :
.4.
3gbellmf.
..
MATLAB :
dsigmfpsigmf ..
.Zmfsmfpimf.
MATLAB :
. .
fuzzy partitioning).(pimf .
.
.
4 -..
>> ruleedit
.
MATLAB :
.
1. If the service is poor or the food is rancid, then tip is cheap.
Add Rule .
.
MATLAB :
.
2. If the service is good, then tip is average.
Add rule .
.
MATLAB :
3. If the service is excellent or the food is delicious, then tip is generous.
MATLAB :
.
.Rule
surface .
5-Rule Surface.
.
MATLAB :
.
.
.
6-.
MATLAB :
.
.=
:
Service = 7 , food = 7 => tip = ?
MATLAB :
:
Tip = 17.8
:
Service = 3 , food = 8.5
tip.
MATLAB :
tip
Tip = 18.7