:
;
Fuzzy Toolbox Matlab;
Matlab.
, . (fuzzy sets) (fuzzy logic) (Lotfi Zadeh) 1965 . , .
:
: , , ( , ..);
: "", "", ";
, ;
.
(fuzzy logic inference) Y = f (x 1, x 2, , xn) , , , .
, , :
1) , .. xk (k = 1, , n);
2) :
, .. (). , , , ( Ȼ, Ȼ);
. Ȼ;
3) , .. ( Ȼ);
4) , . (centroid) , ;
|
|
().
1. :
x = { (S), (M), (L)};
y = { (S), (L)};
z = { (S), (L)}.
2. (. 3):
. 3. ,
: ; ; .
3. , :
= ɻ = = Ż
, x, y z . 1:
1
x y | S | M | L |
S | S | L | L |
L | S | S | L |
4. x = x * y = y * (. 4)
5. 1 - 4, (. 5).
|
. 5.
2.3. Matlab
Matlab The MathWorks. , , , .
Matlab (. 6), :
1) ;
2) ;
3) Launch Pad ;
4) Command History ;
5) Command Window .
. 6. Matlab
, , . Launch Pad . fuzzy.
Fuzzy Toolbox (. 7) :
1) ;
2) ;
3) .
. 7. Fuzzy Logic Toolbox
Edit → Add Variable → Input. Edit → Remove Selected Variable.
, / Edit → Membership Functions (. 8).
|
|
. 8.
. 8 1 - 4 :
1 , ;
2 ;
3 :
range , ;
display range , ;
4 :
name ;
type (trimf , trapmf , gauss );
params .
, Edit → Add MFs, .
Edit → Remove Selected MF.
Edit → Rules (. 9).
. 9.
. 9 1 - 6 :
1 ;
2 ;
3
();
4 (/);
5 ;
6 :
Delete Rule , ;
Add Rule ;
Change Rule , .
, Add Rule.
, Delete Rule.
View → Rules.
. 10.
Input . Output .
Matlab .
1. Fuzzy Logic Toolbox fuzzy.
2. , Edit → Add Variable → Input (. 11):
. 11.
3. (. 12):
. 12.
4. (. 13):
. 13.
5. , View → Rules (. 14):
. 14.
1
1.1
x y | z |
1.2
x y | z |
1.3
x y | z |
2
2.1
x y | z |
|
|
2.2
x y | z |
2.3
x y | z |
3.
3.1
x y | z |
3.2
x y | z |
3.3
x y | z |
4.
4.1
y - | z |
4.2
x y | z |
4.3
x y | z |
5
5.1
x y | z |
5.2
x y | z |
5.3
x y | z |