SlideShare a Scribd company logo
1
PROJECT REPORT
ON
FUZZY CONTROL SYSTEM
2
Index
Chapter: 2 …………………………………………………………………………………………
Exercise: 2.3 ……………………………………………………………………………
Exercise: 2.4 ……………………………………………………………………………
Exercise: 2.5 ……………………………………………………………………………
Exercise: 2.6 ……………………………………………………………………………
Exercise: 2.8 ……………………………………………………………………………
3
Chapter: 2
Exercise: 2.3
𝜇 𝐹 =
𝑥
𝑥 + 2
, 𝑛𝑜𝑡 𝑧𝑒𝑟𝑜; 𝜇 𝐺 = 𝑒−𝑥 , 𝑎𝑏𝑜𝑢𝑡 𝑧𝑒𝑟𝑜; 𝜇 𝐻 =
1
1 + 10 (𝑥 − 2)2 , 𝑎𝑏𝑜𝑢𝑡 𝑡𝑤𝑜; 𝑥 𝜖 [0,10]
close all; clc; clear all; syms x
muF=x/(x+2);muG=exp(-x);muH=1/(1+10*(x-2)^2);
xx=0:0.1:10;
figure
plot(xx,subs(muF,x,xx),xx,subs(muG,x,xx),xx,subs(muH,x,xx))
legend('mu_F(x)','mu_G(x)','mu_H(x)')
𝜇 𝐹̅ = 1 −
𝑥
𝑥 + 2
; 𝜇 𝐺̅ = 1 − 𝑒−𝑥 ; 𝜇 𝐻̅ = 1 −
1
1 + 10 (𝑥 − 2)2 ; 𝑥 𝜖 [0,10]
figure
plot(xx,subs(1-muF,x,xx),xx,subs(1-muG,x,xx),xx,subs(1-muH,x,xx))
legend('1-mu_F(x)','1-mu_G(x)','1-mu_H(x)')
4
𝜇 𝐹∪𝐺 = max
𝑥∈[0,10]
{ 𝜇 𝐹 , 𝜇 𝐺 } = max
𝑥∈[0,10]
{
𝑥
𝑥 + 2
, 𝑒−𝑥}
𝜇 𝐹∪𝐻 = max
𝑥∈[0,10]
{ 𝜇 𝐹 , 𝜇 𝐻 } = max
𝑥∈[0,10]
{
𝑥
𝑥 + 2
,
1
1 + 10 (𝑥 − 2)2}
𝜇 𝐺∪𝐻 = max
𝑥∈[0,10]
{ 𝜇 𝐺 , 𝜇 𝐻 } = max
𝑥∈[0,10]
{ 𝑒−𝑥 ,
1
1 + 10 (𝑥 − 2)2}
FUG=max(subs(muF,x,xx),subs(muG,x,xx));
FUH=max(subs(muF,x,xx),subs(muH,x,xx));
GUH=max(subs(muG,x,xx),subs(muH,x,xx));
figure
plot(xx,FUG,xx,FUH,xx,GUH)
legend('FUG','FUH','GUH')
5
𝜇 𝐹∩𝐺 = min
𝑥∈[0,10]
{ 𝜇 𝐹 , 𝜇 𝐺 } = min
𝑥∈[0,10]
{
𝑥
𝑥 + 2
, 𝑒−𝑥}
𝜇 𝐹∩𝐻 = min
𝑥∈[0,10]
{ 𝜇 𝐹 , 𝜇 𝐻 } = min
𝑥∈[0,10]
{
𝑥
𝑥 + 2
,
1
1 + 10 (𝑥 − 2)2}
𝜇 𝐺∩𝐻 = min
𝑥∈[0,10]
{ 𝜇 𝐺 , 𝜇 𝐻 } = min
𝑥∈[0,10]
{ 𝑒−𝑥 ,
1
1 + 10 (𝑥 − 2)2}
FUG=max(subs(muF,x,xx),subs(muG,x,xx));
FUH=max(subs(muF,x,xx),subs(muH,x,xx));
GUH=max(subs(muG,x,xx),subs(muH,x,xx));
figure
plot(xx,FUG,xx,FUH,xx,GUH)
legend('FUG','FUH','GUH')
6
𝜇 𝐹∪𝐺∪𝐻 = max
𝑥∈[0,10]
{ 𝜇 𝐹 , 𝜇 𝐺 , 𝜇 𝐻 } = max
𝑥∈[0,10]
{
𝑥
𝑥 + 2
, 𝑒−𝑥,
1
1 + 10 (𝑥 − 2)2}
𝜇 𝐹∩𝐺∩𝐻 = min
𝑥∈[0,10]
{ 𝜇 𝐹 , 𝜇 𝐺 , 𝜇 𝐻 } = min
𝑥∈[0,10]
{
𝑥
𝑥 + 2
, 𝑒−𝑥,
1
1 + 10 (𝑥 − 2)2}
FUGUH=max(subs(muF,x,xx),GUH);
FandGandH=min(subs(muF,x,xx),GandH);
figure
plot(xx,FUGUH,xx,FandGandH)
legend('FcupGcupH','FcapHcapG')
7
𝜇 𝐹∩𝐻̅ = min
𝑥∈[0,10]
{ 𝜇 𝐹 ,1 − 𝜇 𝐻 } = min
𝑥∈[0,10]
{
𝑥
𝑥 + 2
,1 −
1
1 + 10 (𝑥 − 2)2}
𝜇 𝐺∪𝐻̅ = max
𝑥∈[0,10]
{ 𝜇 𝐺 ,1 − 𝜇 𝐻 } = max
𝑥∈[0,10]
{ 𝑒−𝑥 ,1 −
1
1 + 10 (𝑥 − 2)2}
𝜇 𝐹̅∩𝐻̅ = min
𝑥∈[0,10]
{1 − 𝜇 𝐹 ,1 − 𝜇 𝐻 } = min
𝑥∈[0,10]
{1 −
𝑥
𝑥 + 2
, 1 −
1
1 + 10 (𝑥 − 2)2}
FandbarH=min(subs(muF,x,xx),1-subs(muH,x,xx));
GUbarH=max(subs(muG,x,xx),1-subs(muH,x,xx));
barFandbarH=min(1-subs(muF,x,xx),1-subs(muH,x,xx));
figure
plot(xx,FandbarH,xx,GUbarH,xx,barFandbarH)
legend('Fcap(1-H)','Gcup(1-H)','(1-F)cap(1-H)')
8
Exercise: 2.4
𝜇 𝐹 =
𝑥
𝑥 + 2
, 𝑛𝑜𝑡 𝑧𝑒𝑟𝑜; 𝜇 𝐺 = 𝑒−𝑥 , 𝑎𝑏𝑜𝑢𝑡 𝑧𝑒𝑟𝑜; 𝜇 𝐻 =
1
1 + 10 (𝑥 − 2)2 , 𝑎𝑏𝑜𝑢𝑡 𝑡𝑤𝑜; 𝑥 𝜖 [0,10]
𝐹𝑎 = { 𝑥 ∈ 𝑈| 𝜇 𝐹 ≥ 𝑎} = {𝑥 ∈ 𝑈
𝑥
𝑥 + 2
≥ 𝑎} , 𝑈 = [0,10]
𝑥
𝑥 + 2
≥ 𝑎 ⇒
2𝑎
1 − 𝑎
≤ 𝑥 ≤ 10 ⇒ 𝐹𝑎 = [
2𝑎
1 − 𝑎
, 10]
𝐺𝑎 = { 𝑥 ∈ 𝑈| 𝜇 𝐺 ≥ 𝑎} = { 𝑥 ∈ 𝑈| 𝑒−𝑥 ≥ 𝑎}, 𝑈 = [0,10]
1 ≥ 𝑒−𝑥 ≥ 𝑎 ⇒ 0 ≤ 𝑥 ≤ −In( 𝑎) ⇒ 𝐺𝑎 = [0, In( 𝑎)]
𝐻 𝑎 = { 𝑥 ∈ 𝑈| 𝜇 𝐻 ≥ 𝑎} = { 𝑥 ∈ 𝑈 |
𝑥
1 + 10 (𝑥 − 2)2 ≥ 𝑎} , 𝑈 = [0,10]
1
1 + 10 (𝑥 − 2)2 ≥ 𝑎 ⇒ 2 − √
1
𝑎
− 1
10
≤ 𝑥 ≤ 2 + √
1
𝑎
− 1
10
⇒ 𝐻 𝑎 = [2√
1
𝑎
− 1
10
,2 + √
1
𝑎
− 1
10
]
𝑎 𝐹𝑎 𝐺𝑎 𝐻 𝑎
0.2 [0.5,10] [0,−In(0.2)] [2 − √
2
5
,2 + √
2
5
]
0.5 [2,10] [0,−In(0.5)] [2 − √
1
10
,2 + √
1
10
]
9
0.9 ∅ [0, −In(0.9)] [2 − √
1
90
,2 + √
1
90
]
1 ∅ [0,0] 2
−[ln(0.2), ln(0.5), ln(0.9), ln(1)] = [1.6094 0.6931 0.1054 0]
close all; clc; clear all; syms x
muF=x/(x+2);muG=exp(-x);muH=1/(1+10*(x-2)^2);
xx=0:0.1:10;
Falpha= subs(muF,x,xx)
figure
plot(xx,subs(muF,x,xx),xx,subs(muG,x,xx),xx,subs(muH,x,xx),xx,alpha*(ones(size(xx)
legend('mu_F(x)','mu_G(x)','mu_H(x)')
-[log(alpha1),log(alpha2),log(alpha3),log(alpha4)]
Exercise: 2.5
𝜇 𝐴( 𝑥1,𝑥2) = 𝑒−(𝑥1
2+𝑥2
2);𝑈 = [−1,1] × [−3,3]
𝐻1 = { 𝑥 𝜖 𝑈| 𝑥1 = 0}, 𝐻2 = { 𝑥 𝜖 𝑈| 𝑥2 = 0}
𝜇 𝐴𝐻1
( 𝑥2) = sup
𝑥1∈[−1,1]
𝜇 𝐴( 𝑥1, 𝑥2) = sup
𝑥1∈[−1,1]
𝑒−(𝑥1
2+𝑥2
2) = 𝑒−𝑥2
2
10
𝜇 𝐴𝐻2
( 𝑥1) = sup
𝑥2∈[−3,3]
𝜇 𝐴( 𝑥1,𝑥2) = sup
𝑥2∈[−3,3]
𝑒−(𝑥1
2+𝑥2
2) = 𝑒−𝑥1
2
close all; clc; clear all;
x1=-1:0.01:1;x2=-3:0.03:3;[x,y]=meshgrid(x1,x2);
muA=exp(-(x.^2+y.^2));
figure
mesh(x,y,muA)
xlabel('x_1');ylabel('x_2');zlabel('e^{-(x_1^2+x_2^2)}')
x1=-1:0.01:1;x2=-3:0.03:3;[x,y]=meshgrid(x1,x2);
muAH1=exp(-(y.^2));
figure
mesh(x,y,muAH1)
xlabel('x_1');ylabel('x_2');zlabel('e^{-(x_2^2)}')
x1=-1:0.01:1;x2=-3:0.03:3;[x,y]=meshgrid(x1,x2);
muAH2=exp(-(x.^2));
figure
mesh(x,y,muAH2)
xlabel('x_1');ylabel('x_2');zlabel('e^{-(x_1^2)}')
11
Exercise: 2.6
𝜇 𝐹( 𝑥) = 𝑥; 𝜇 𝐹̅( 𝑥) = 1 − 𝑥
⇒ 𝜇 𝐹∪𝐹̅( 𝑥) = max
𝑥∈[0,1]
{𝜇 𝐹( 𝑥), 𝜇 𝐹̅( 𝑥)} = | 𝑥 − 0.5| + 0.5 ≠ 1 = 𝜇 𝑈( 𝑥) = 1, ∀𝑥 ∈ [0,1]
close all; clc; clear all;
x=0:0.01:1; muF=x;mubarF=1-x;FUbarF=max(muF,mubarF);
figure
plot(x,muF,x,mubarF)
legend('mu_F','1-mu_F')
figure
plot(x,FUbarF,x,ones(1,size(x,2)))
legend('mu_Fcup(1-mu_F)','mu_U=1','Location','SouthEast')
axis([0,1,0,1])
12
Exercise: 2.8
𝜇 𝐴( 𝑥) = 𝑥; 𝜇 𝐵( 𝑥) = 1 − 𝑥, 𝑥 ∈ 𝑈 = [0,1];
⇒ 𝜇 𝐴∪𝐵( 𝑥) = max
𝑥∈[0,1]
{𝜇 𝐴( 𝑥), 𝜇 𝐵( 𝑥)} = | 𝑥 − 0.5| + 0.5
⇒ 𝜇 𝐴∩𝐵( 𝑥) = min
𝑥∈[0,1]
{𝜇 𝐴( 𝑥), 𝜇 𝐵( 𝑥)} = 0.5 − | 𝑥 − 0.5|
𝜇 𝐴( 𝜆𝑥1 + (1 − 𝜆) 𝑥2) ≥ min{𝜇 𝐴( 𝑥1), 𝜇 𝐴( 𝑥2)}
𝜇 𝐴( 𝜆𝑥1 + (1 − 𝜆) 𝑥2) ≥ min{𝜇 𝐵( 𝑥1),𝜇 𝐵( 𝑥2)}
𝜇 𝐴∩𝐵( 𝜆𝑥1 + (1 − 𝜆) 𝑥2) = min{𝜇 𝐴( 𝜆𝑥1 + (1 − 𝜆) 𝑥2), 𝜇 𝐵( 𝜆𝑥1 + (1 − 𝜆) 𝑥2)}
≥ min{min{ 𝜇 𝐴( 𝑥1), 𝜇 𝐴(𝑥2)},min{min{ 𝜇 𝐵( 𝑥1), 𝜇 𝐵(𝑥2)}}
≥ min{min{ 𝜇 𝐴( 𝑥1), 𝜇 𝐵(𝑥1)},min{min{ 𝜇 𝐴( 𝑥2), 𝜇 𝐵(𝑥2)}}
= min{𝜇 𝐴⋂𝐵( 𝑥1),𝜇 𝐴⋂𝐵( 𝑥2)}
𝜇 𝐴∪𝐵( 𝜆𝑥1 + (1 − 𝜆) 𝑥2) = max{𝜇 𝐴( 𝜆𝑥1 + (1 − 𝜆) 𝑥2), 𝜇 𝐵( 𝜆𝑥1 + (1 − 𝜆) 𝑥2)}
= 𝑚𝑎𝑥 {min{𝜇 𝐴( 𝑥1),𝜇 𝐴(𝑥2)},min{min{ 𝜇 𝐵( 𝑥1), 𝜇 𝐵(𝑥2)}}
= max{min{ 𝜇 𝐴( 𝑥1),𝜇 𝐵(𝑥1)},min{min{ 𝜇 𝐴( 𝑥2), 𝜇 𝐵(𝑥2)}}
≠ min{ max { 𝜇 𝐴( 𝑥1), 𝜇 𝐵(𝑥1)},min{min{ 𝜇 𝐴( 𝑥2),𝜇 𝐵(𝑥2)}}
= min{𝜇 𝐴∪𝐵( 𝑥1), 𝜇 𝐴∪𝐵( 𝑥2)}
𝑥1 = 0.2, 𝑥2 = 0.8 ⇒ 𝜇 𝐴∪𝐵(0.2) = 𝜇 𝐴∪𝐵(0.8) = 0.8 = min{𝜇 𝐴∪𝐵(0.2), 𝜇 𝐴∪𝐵(0.8)}
𝜇 𝐴∪𝐵(0.2𝜆 + (1 − 𝜆)0.8) ≤ 0.8 = min{𝜇 𝐴∪𝐵(0.2), 𝜇 𝐴∪𝐵(0.8)}
𝜆 = 0.5 ⇒ 𝜇 𝐴∪𝐵(0.5) = 0.5 < 0.8 = min{𝜇 𝐴∪𝐵(0.2), 𝜇 𝐴∪𝐵(0.8)}
𝜇 𝐴∪𝐵 is not convex
13
close all; clc; clear all;
x=0:0.01:1; muA=x;muB=1-x;AUB=max(muA,muB);AandB=min(muA,muB);
figure
plot(x,muA,x,muB)
legend('mu_A','mu_B')
figure
plot(x,AandB)
legend('mu_{AcapB}')
axis([0,1,0,1])
figure
plot(x,AUB)
legend('mu_{AcupB}','Location','SouthEast')
axis([0,1,0,1])
14

More Related Content

What's hot

Longest common sub sequence & 0/1 Knapsack
Longest common sub sequence & 0/1 KnapsackLongest common sub sequence & 0/1 Knapsack
Longest common sub sequence & 0/1 Knapsack
Asif Shahriar
 
Derivacion logoritmica
Derivacion logoritmicaDerivacion logoritmica
Derivacion logoritmica
FeliannyMontero
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem areadicosmo178
 
Matemática
MatemáticaMatemática
Matemática
Gustavo Reina
 
Vcla - Inner Products
Vcla - Inner ProductsVcla - Inner Products
Vcla - Inner Products
Preetshah1212
 
Potencias resueltas 1eso (1)
Potencias resueltas 1eso (1)Potencias resueltas 1eso (1)
Potencias resueltas 1eso (1)Lina Manriquez
 
基礎からのベイズ統計学 輪読会資料 第8章 「比率・相関・信頼性」
基礎からのベイズ統計学 輪読会資料  第8章 「比率・相関・信頼性」基礎からのベイズ統計学 輪読会資料  第8章 「比率・相関・信頼性」
基礎からのベイズ統計学 輪読会資料 第8章 「比率・相関・信頼性」
Ken'ichi Matsui
 
【演習】Re:ゲーム理論入門 第11回 -非協力ゲームにおける交渉ゲーム-
【演習】Re:ゲーム理論入門 第11回 -非協力ゲームにおける交渉ゲーム-【演習】Re:ゲーム理論入門 第11回 -非協力ゲームにおける交渉ゲーム-
【演習】Re:ゲーム理論入門 第11回 -非協力ゲームにおける交渉ゲーム-
ssusere0a682
 
Ideal Bose Systems
Ideal Bose SystemsIdeal Bose Systems
Ideal Bose Systems
Sara Khorshidian
 
師父與徒弟的列式
師父與徒弟的列式師父與徒弟的列式
師父與徒弟的列式
庭蘭 李
 
師父與徒弟的列式
師父與徒弟的列式師父與徒弟的列式
師父與徒弟的列式
庭蘭 李
 
統計的学習の基礎 4章 前半
統計的学習の基礎 4章 前半統計的学習の基礎 4章 前半
統計的学習の基礎 4章 前半
Ken'ichi Matsui
 
Formulario de Calculo Diferencial-Integral
Formulario de Calculo Diferencial-IntegralFormulario de Calculo Diferencial-Integral
Formulario de Calculo Diferencial-Integral
Erick Chevez
 

What's hot (17)

Longest common sub sequence & 0/1 Knapsack
Longest common sub sequence & 0/1 KnapsackLongest common sub sequence & 0/1 Knapsack
Longest common sub sequence & 0/1 Knapsack
 
Derivacion logoritmica
Derivacion logoritmicaDerivacion logoritmica
Derivacion logoritmica
 
Capitulo 5 Soluciones Purcell 9na Edicion
Capitulo 5 Soluciones Purcell 9na EdicionCapitulo 5 Soluciones Purcell 9na Edicion
Capitulo 5 Soluciones Purcell 9na Edicion
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area
 
Matemática
MatemáticaMatemática
Matemática
 
Capitulo 4 Soluciones Purcell 9na Edicion
Capitulo 4 Soluciones Purcell 9na EdicionCapitulo 4 Soluciones Purcell 9na Edicion
Capitulo 4 Soluciones Purcell 9na Edicion
 
Capitulo 7 Soluciones Purcell 9na Edicion
Capitulo 7 Soluciones Purcell 9na EdicionCapitulo 7 Soluciones Purcell 9na Edicion
Capitulo 7 Soluciones Purcell 9na Edicion
 
Vcla - Inner Products
Vcla - Inner ProductsVcla - Inner Products
Vcla - Inner Products
 
Potencias resueltas 1eso (1)
Potencias resueltas 1eso (1)Potencias resueltas 1eso (1)
Potencias resueltas 1eso (1)
 
基礎からのベイズ統計学 輪読会資料 第8章 「比率・相関・信頼性」
基礎からのベイズ統計学 輪読会資料  第8章 「比率・相関・信頼性」基礎からのベイズ統計学 輪読会資料  第8章 「比率・相関・信頼性」
基礎からのベイズ統計学 輪読会資料 第8章 「比率・相関・信頼性」
 
【演習】Re:ゲーム理論入門 第11回 -非協力ゲームにおける交渉ゲーム-
【演習】Re:ゲーム理論入門 第11回 -非協力ゲームにおける交渉ゲーム-【演習】Re:ゲーム理論入門 第11回 -非協力ゲームにおける交渉ゲーム-
【演習】Re:ゲーム理論入門 第11回 -非協力ゲームにおける交渉ゲーム-
 
Jerarquia de operaciones
Jerarquia de operacionesJerarquia de operaciones
Jerarquia de operaciones
 
Ideal Bose Systems
Ideal Bose SystemsIdeal Bose Systems
Ideal Bose Systems
 
師父與徒弟的列式
師父與徒弟的列式師父與徒弟的列式
師父與徒弟的列式
 
師父與徒弟的列式
師父與徒弟的列式師父與徒弟的列式
師父與徒弟的列式
 
統計的学習の基礎 4章 前半
統計的学習の基礎 4章 前半統計的学習の基礎 4章 前半
統計的学習の基礎 4章 前半
 
Formulario de Calculo Diferencial-Integral
Formulario de Calculo Diferencial-IntegralFormulario de Calculo Diferencial-Integral
Formulario de Calculo Diferencial-Integral
 

Similar to A Course in Fuzzy Systems and Control Matlab Chapter two

vibration of machines and structures
vibration of machines and structuresvibration of machines and structures
vibration of machines and structuresAniruddhsinh Barad
 
Trabajo matemáticas 7
Trabajo matemáticas 7Trabajo matemáticas 7
Trabajo matemáticas 7
SamanthaAlcivar1
 
Taller 1 parcial 3
Taller 1 parcial 3Taller 1 parcial 3
Taller 1 parcial 3
katherinecedeo11
 
Raices de un polinomio 11
Raices de un polinomio 11Raices de un polinomio 11
Raices de un polinomio 11
NestOr Pancca
 
FOURIER SERIES Presentation of given functions.pptx
FOURIER SERIES Presentation of given functions.pptxFOURIER SERIES Presentation of given functions.pptx
FOURIER SERIES Presentation of given functions.pptx
jyotidighole2
 
Tarea 1 vectores, matrices y determinantes laura montes
Tarea 1   vectores, matrices y determinantes laura montesTarea 1   vectores, matrices y determinantes laura montes
Tarea 1 vectores, matrices y determinantes laura montes
LAURAXIMENAMONTESEST
 
Mpc 006 - 02-01 product moment coefficient of correlation
Mpc 006 - 02-01 product moment coefficient of correlationMpc 006 - 02-01 product moment coefficient of correlation
Mpc 006 - 02-01 product moment coefficient of correlation
Vasant Kothari
 
B.tech ii unit-2 material beta gamma function
B.tech ii unit-2 material beta gamma functionB.tech ii unit-2 material beta gamma function
B.tech ii unit-2 material beta gamma function
Rai University
 
SUEC 高中 Adv Maths (Locus) (Part 2).pptx
SUEC 高中 Adv Maths (Locus) (Part 2).pptxSUEC 高中 Adv Maths (Locus) (Part 2).pptx
SUEC 高中 Adv Maths (Locus) (Part 2).pptx
tungwc
 
P1 tarea3 cevallos_alejandro
P1 tarea3 cevallos_alejandroP1 tarea3 cevallos_alejandro
P1 tarea3 cevallos_alejandro
Alejandro Cevallos
 
Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2
Rai University
 
ゲーム理論BASIC 第41回 -続・仁-
ゲーム理論BASIC 第41回 -続・仁-ゲーム理論BASIC 第41回 -続・仁-
ゲーム理論BASIC 第41回 -続・仁-
ssusere0a682
 
Integral calculus
Integral calculusIntegral calculus
Integral calculus
Santhanam Krishnan
 
Tugas 5.3 kalkulus integral
Tugas 5.3 kalkulus integralTugas 5.3 kalkulus integral
Tugas 5.3 kalkulus integral
Nurkhalifah Anwar
 
SUEC 高中 Adv Maths (Locus) (Part 1).pptx
SUEC 高中 Adv Maths (Locus) (Part 1).pptxSUEC 高中 Adv Maths (Locus) (Part 1).pptx
SUEC 高中 Adv Maths (Locus) (Part 1).pptx
tungwc
 
Calculo
CalculoCalculo
Calculo
malevolex123
 
taller transformaciones lineales
taller transformaciones linealestaller transformaciones lineales
taller transformaciones lineales
emojose107
 
ゲーム理論 BASIC 演習72 -3人ゲーム分析:仁-
ゲーム理論 BASIC 演習72 -3人ゲーム分析:仁-ゲーム理論 BASIC 演習72 -3人ゲーム分析:仁-
ゲーム理論 BASIC 演習72 -3人ゲーム分析:仁-
ssusere0a682
 
ゲーム理論BASIC 第40回 -仁-
ゲーム理論BASIC 第40回 -仁-ゲーム理論BASIC 第40回 -仁-
ゲーム理論BASIC 第40回 -仁-
ssusere0a682
 
Espacios de Trabajo - ROBOKIDS.pptx
Espacios de Trabajo - ROBOKIDS.pptxEspacios de Trabajo - ROBOKIDS.pptx
Espacios de Trabajo - ROBOKIDS.pptx
José Manuel
 

Similar to A Course in Fuzzy Systems and Control Matlab Chapter two (20)

vibration of machines and structures
vibration of machines and structuresvibration of machines and structures
vibration of machines and structures
 
Trabajo matemáticas 7
Trabajo matemáticas 7Trabajo matemáticas 7
Trabajo matemáticas 7
 
Taller 1 parcial 3
Taller 1 parcial 3Taller 1 parcial 3
Taller 1 parcial 3
 
Raices de un polinomio 11
Raices de un polinomio 11Raices de un polinomio 11
Raices de un polinomio 11
 
FOURIER SERIES Presentation of given functions.pptx
FOURIER SERIES Presentation of given functions.pptxFOURIER SERIES Presentation of given functions.pptx
FOURIER SERIES Presentation of given functions.pptx
 
Tarea 1 vectores, matrices y determinantes laura montes
Tarea 1   vectores, matrices y determinantes laura montesTarea 1   vectores, matrices y determinantes laura montes
Tarea 1 vectores, matrices y determinantes laura montes
 
Mpc 006 - 02-01 product moment coefficient of correlation
Mpc 006 - 02-01 product moment coefficient of correlationMpc 006 - 02-01 product moment coefficient of correlation
Mpc 006 - 02-01 product moment coefficient of correlation
 
B.tech ii unit-2 material beta gamma function
B.tech ii unit-2 material beta gamma functionB.tech ii unit-2 material beta gamma function
B.tech ii unit-2 material beta gamma function
 
SUEC 高中 Adv Maths (Locus) (Part 2).pptx
SUEC 高中 Adv Maths (Locus) (Part 2).pptxSUEC 高中 Adv Maths (Locus) (Part 2).pptx
SUEC 高中 Adv Maths (Locus) (Part 2).pptx
 
P1 tarea3 cevallos_alejandro
P1 tarea3 cevallos_alejandroP1 tarea3 cevallos_alejandro
P1 tarea3 cevallos_alejandro
 
Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2Btech_II_ engineering mathematics_unit2
Btech_II_ engineering mathematics_unit2
 
ゲーム理論BASIC 第41回 -続・仁-
ゲーム理論BASIC 第41回 -続・仁-ゲーム理論BASIC 第41回 -続・仁-
ゲーム理論BASIC 第41回 -続・仁-
 
Integral calculus
Integral calculusIntegral calculus
Integral calculus
 
Tugas 5.3 kalkulus integral
Tugas 5.3 kalkulus integralTugas 5.3 kalkulus integral
Tugas 5.3 kalkulus integral
 
SUEC 高中 Adv Maths (Locus) (Part 1).pptx
SUEC 高中 Adv Maths (Locus) (Part 1).pptxSUEC 高中 Adv Maths (Locus) (Part 1).pptx
SUEC 高中 Adv Maths (Locus) (Part 1).pptx
 
Calculo
CalculoCalculo
Calculo
 
taller transformaciones lineales
taller transformaciones linealestaller transformaciones lineales
taller transformaciones lineales
 
ゲーム理論 BASIC 演習72 -3人ゲーム分析:仁-
ゲーム理論 BASIC 演習72 -3人ゲーム分析:仁-ゲーム理論 BASIC 演習72 -3人ゲーム分析:仁-
ゲーム理論 BASIC 演習72 -3人ゲーム分析:仁-
 
ゲーム理論BASIC 第40回 -仁-
ゲーム理論BASIC 第40回 -仁-ゲーム理論BASIC 第40回 -仁-
ゲーム理論BASIC 第40回 -仁-
 
Espacios de Trabajo - ROBOKIDS.pptx
Espacios de Trabajo - ROBOKIDS.pptxEspacios de Trabajo - ROBOKIDS.pptx
Espacios de Trabajo - ROBOKIDS.pptx
 

More from Chung Hua Universit

A Course in Fuzzy Systems and Control Matlab Chapter six and seven
A Course in Fuzzy Systems and Control Matlab Chapter six and sevenA Course in Fuzzy Systems and Control Matlab Chapter six and seven
A Course in Fuzzy Systems and Control Matlab Chapter six and seven
Chung Hua Universit
 
A Course in Fuzzy Systems and Control Matlab Chapter Five
A Course in Fuzzy Systems and Control Matlab Chapter FiveA Course in Fuzzy Systems and Control Matlab Chapter Five
A Course in Fuzzy Systems and Control Matlab Chapter Five
Chung Hua Universit
 
A Course in Fuzzy Systems and Control Matlab Chapter Four
A Course in Fuzzy Systems and Control Matlab Chapter FourA Course in Fuzzy Systems and Control Matlab Chapter Four
A Course in Fuzzy Systems and Control Matlab Chapter Four
Chung Hua Universit
 
A Course in Fuzzy Systems and Control Matlab Chapter Three
A Course in Fuzzy Systems and Control Matlab Chapter ThreeA Course in Fuzzy Systems and Control Matlab Chapter Three
A Course in Fuzzy Systems and Control Matlab Chapter Three
Chung Hua Universit
 
The Digital Image Processing Q@A
The Digital Image Processing Q@AThe Digital Image Processing Q@A
The Digital Image Processing Q@A
Chung Hua Universit
 
Digtial Image Processing Q@A
Digtial Image Processing Q@ADigtial Image Processing Q@A
Digtial Image Processing Q@A
Chung Hua Universit
 

More from Chung Hua Universit (6)

A Course in Fuzzy Systems and Control Matlab Chapter six and seven
A Course in Fuzzy Systems and Control Matlab Chapter six and sevenA Course in Fuzzy Systems and Control Matlab Chapter six and seven
A Course in Fuzzy Systems and Control Matlab Chapter six and seven
 
A Course in Fuzzy Systems and Control Matlab Chapter Five
A Course in Fuzzy Systems and Control Matlab Chapter FiveA Course in Fuzzy Systems and Control Matlab Chapter Five
A Course in Fuzzy Systems and Control Matlab Chapter Five
 
A Course in Fuzzy Systems and Control Matlab Chapter Four
A Course in Fuzzy Systems and Control Matlab Chapter FourA Course in Fuzzy Systems and Control Matlab Chapter Four
A Course in Fuzzy Systems and Control Matlab Chapter Four
 
A Course in Fuzzy Systems and Control Matlab Chapter Three
A Course in Fuzzy Systems and Control Matlab Chapter ThreeA Course in Fuzzy Systems and Control Matlab Chapter Three
A Course in Fuzzy Systems and Control Matlab Chapter Three
 
The Digital Image Processing Q@A
The Digital Image Processing Q@AThe Digital Image Processing Q@A
The Digital Image Processing Q@A
 
Digtial Image Processing Q@A
Digtial Image Processing Q@ADigtial Image Processing Q@A
Digtial Image Processing Q@A
 

Recently uploaded

Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
Steve Thomason
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
EduSkills OECD
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
Celine George
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
Col Mukteshwar Prasad
 

Recently uploaded (20)

Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxStudents, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptx
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
How to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERPHow to Create Map Views in the Odoo 17 ERP
How to Create Map Views in the Odoo 17 ERP
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
How to Break the cycle of negative Thoughts
How to Break the cycle of negative ThoughtsHow to Break the cycle of negative Thoughts
How to Break the cycle of negative Thoughts
 

A Course in Fuzzy Systems and Control Matlab Chapter two

  • 2. 2 Index Chapter: 2 ………………………………………………………………………………………… Exercise: 2.3 …………………………………………………………………………… Exercise: 2.4 …………………………………………………………………………… Exercise: 2.5 …………………………………………………………………………… Exercise: 2.6 …………………………………………………………………………… Exercise: 2.8 ……………………………………………………………………………
  • 3. 3 Chapter: 2 Exercise: 2.3 𝜇 𝐹 = 𝑥 𝑥 + 2 , 𝑛𝑜𝑡 𝑧𝑒𝑟𝑜; 𝜇 𝐺 = 𝑒−𝑥 , 𝑎𝑏𝑜𝑢𝑡 𝑧𝑒𝑟𝑜; 𝜇 𝐻 = 1 1 + 10 (𝑥 − 2)2 , 𝑎𝑏𝑜𝑢𝑡 𝑡𝑤𝑜; 𝑥 𝜖 [0,10] close all; clc; clear all; syms x muF=x/(x+2);muG=exp(-x);muH=1/(1+10*(x-2)^2); xx=0:0.1:10; figure plot(xx,subs(muF,x,xx),xx,subs(muG,x,xx),xx,subs(muH,x,xx)) legend('mu_F(x)','mu_G(x)','mu_H(x)') 𝜇 𝐹̅ = 1 − 𝑥 𝑥 + 2 ; 𝜇 𝐺̅ = 1 − 𝑒−𝑥 ; 𝜇 𝐻̅ = 1 − 1 1 + 10 (𝑥 − 2)2 ; 𝑥 𝜖 [0,10] figure plot(xx,subs(1-muF,x,xx),xx,subs(1-muG,x,xx),xx,subs(1-muH,x,xx)) legend('1-mu_F(x)','1-mu_G(x)','1-mu_H(x)')
  • 4. 4 𝜇 𝐹∪𝐺 = max 𝑥∈[0,10] { 𝜇 𝐹 , 𝜇 𝐺 } = max 𝑥∈[0,10] { 𝑥 𝑥 + 2 , 𝑒−𝑥} 𝜇 𝐹∪𝐻 = max 𝑥∈[0,10] { 𝜇 𝐹 , 𝜇 𝐻 } = max 𝑥∈[0,10] { 𝑥 𝑥 + 2 , 1 1 + 10 (𝑥 − 2)2} 𝜇 𝐺∪𝐻 = max 𝑥∈[0,10] { 𝜇 𝐺 , 𝜇 𝐻 } = max 𝑥∈[0,10] { 𝑒−𝑥 , 1 1 + 10 (𝑥 − 2)2} FUG=max(subs(muF,x,xx),subs(muG,x,xx)); FUH=max(subs(muF,x,xx),subs(muH,x,xx)); GUH=max(subs(muG,x,xx),subs(muH,x,xx)); figure plot(xx,FUG,xx,FUH,xx,GUH) legend('FUG','FUH','GUH')
  • 5. 5 𝜇 𝐹∩𝐺 = min 𝑥∈[0,10] { 𝜇 𝐹 , 𝜇 𝐺 } = min 𝑥∈[0,10] { 𝑥 𝑥 + 2 , 𝑒−𝑥} 𝜇 𝐹∩𝐻 = min 𝑥∈[0,10] { 𝜇 𝐹 , 𝜇 𝐻 } = min 𝑥∈[0,10] { 𝑥 𝑥 + 2 , 1 1 + 10 (𝑥 − 2)2} 𝜇 𝐺∩𝐻 = min 𝑥∈[0,10] { 𝜇 𝐺 , 𝜇 𝐻 } = min 𝑥∈[0,10] { 𝑒−𝑥 , 1 1 + 10 (𝑥 − 2)2} FUG=max(subs(muF,x,xx),subs(muG,x,xx)); FUH=max(subs(muF,x,xx),subs(muH,x,xx)); GUH=max(subs(muG,x,xx),subs(muH,x,xx)); figure plot(xx,FUG,xx,FUH,xx,GUH) legend('FUG','FUH','GUH')
  • 6. 6 𝜇 𝐹∪𝐺∪𝐻 = max 𝑥∈[0,10] { 𝜇 𝐹 , 𝜇 𝐺 , 𝜇 𝐻 } = max 𝑥∈[0,10] { 𝑥 𝑥 + 2 , 𝑒−𝑥, 1 1 + 10 (𝑥 − 2)2} 𝜇 𝐹∩𝐺∩𝐻 = min 𝑥∈[0,10] { 𝜇 𝐹 , 𝜇 𝐺 , 𝜇 𝐻 } = min 𝑥∈[0,10] { 𝑥 𝑥 + 2 , 𝑒−𝑥, 1 1 + 10 (𝑥 − 2)2} FUGUH=max(subs(muF,x,xx),GUH); FandGandH=min(subs(muF,x,xx),GandH); figure plot(xx,FUGUH,xx,FandGandH) legend('FcupGcupH','FcapHcapG')
  • 7. 7 𝜇 𝐹∩𝐻̅ = min 𝑥∈[0,10] { 𝜇 𝐹 ,1 − 𝜇 𝐻 } = min 𝑥∈[0,10] { 𝑥 𝑥 + 2 ,1 − 1 1 + 10 (𝑥 − 2)2} 𝜇 𝐺∪𝐻̅ = max 𝑥∈[0,10] { 𝜇 𝐺 ,1 − 𝜇 𝐻 } = max 𝑥∈[0,10] { 𝑒−𝑥 ,1 − 1 1 + 10 (𝑥 − 2)2} 𝜇 𝐹̅∩𝐻̅ = min 𝑥∈[0,10] {1 − 𝜇 𝐹 ,1 − 𝜇 𝐻 } = min 𝑥∈[0,10] {1 − 𝑥 𝑥 + 2 , 1 − 1 1 + 10 (𝑥 − 2)2} FandbarH=min(subs(muF,x,xx),1-subs(muH,x,xx)); GUbarH=max(subs(muG,x,xx),1-subs(muH,x,xx)); barFandbarH=min(1-subs(muF,x,xx),1-subs(muH,x,xx)); figure plot(xx,FandbarH,xx,GUbarH,xx,barFandbarH) legend('Fcap(1-H)','Gcup(1-H)','(1-F)cap(1-H)')
  • 8. 8 Exercise: 2.4 𝜇 𝐹 = 𝑥 𝑥 + 2 , 𝑛𝑜𝑡 𝑧𝑒𝑟𝑜; 𝜇 𝐺 = 𝑒−𝑥 , 𝑎𝑏𝑜𝑢𝑡 𝑧𝑒𝑟𝑜; 𝜇 𝐻 = 1 1 + 10 (𝑥 − 2)2 , 𝑎𝑏𝑜𝑢𝑡 𝑡𝑤𝑜; 𝑥 𝜖 [0,10] 𝐹𝑎 = { 𝑥 ∈ 𝑈| 𝜇 𝐹 ≥ 𝑎} = {𝑥 ∈ 𝑈 𝑥 𝑥 + 2 ≥ 𝑎} , 𝑈 = [0,10] 𝑥 𝑥 + 2 ≥ 𝑎 ⇒ 2𝑎 1 − 𝑎 ≤ 𝑥 ≤ 10 ⇒ 𝐹𝑎 = [ 2𝑎 1 − 𝑎 , 10] 𝐺𝑎 = { 𝑥 ∈ 𝑈| 𝜇 𝐺 ≥ 𝑎} = { 𝑥 ∈ 𝑈| 𝑒−𝑥 ≥ 𝑎}, 𝑈 = [0,10] 1 ≥ 𝑒−𝑥 ≥ 𝑎 ⇒ 0 ≤ 𝑥 ≤ −In( 𝑎) ⇒ 𝐺𝑎 = [0, In( 𝑎)] 𝐻 𝑎 = { 𝑥 ∈ 𝑈| 𝜇 𝐻 ≥ 𝑎} = { 𝑥 ∈ 𝑈 | 𝑥 1 + 10 (𝑥 − 2)2 ≥ 𝑎} , 𝑈 = [0,10] 1 1 + 10 (𝑥 − 2)2 ≥ 𝑎 ⇒ 2 − √ 1 𝑎 − 1 10 ≤ 𝑥 ≤ 2 + √ 1 𝑎 − 1 10 ⇒ 𝐻 𝑎 = [2√ 1 𝑎 − 1 10 ,2 + √ 1 𝑎 − 1 10 ] 𝑎 𝐹𝑎 𝐺𝑎 𝐻 𝑎 0.2 [0.5,10] [0,−In(0.2)] [2 − √ 2 5 ,2 + √ 2 5 ] 0.5 [2,10] [0,−In(0.5)] [2 − √ 1 10 ,2 + √ 1 10 ]
  • 9. 9 0.9 ∅ [0, −In(0.9)] [2 − √ 1 90 ,2 + √ 1 90 ] 1 ∅ [0,0] 2 −[ln(0.2), ln(0.5), ln(0.9), ln(1)] = [1.6094 0.6931 0.1054 0] close all; clc; clear all; syms x muF=x/(x+2);muG=exp(-x);muH=1/(1+10*(x-2)^2); xx=0:0.1:10; Falpha= subs(muF,x,xx) figure plot(xx,subs(muF,x,xx),xx,subs(muG,x,xx),xx,subs(muH,x,xx),xx,alpha*(ones(size(xx) legend('mu_F(x)','mu_G(x)','mu_H(x)') -[log(alpha1),log(alpha2),log(alpha3),log(alpha4)] Exercise: 2.5 𝜇 𝐴( 𝑥1,𝑥2) = 𝑒−(𝑥1 2+𝑥2 2);𝑈 = [−1,1] × [−3,3] 𝐻1 = { 𝑥 𝜖 𝑈| 𝑥1 = 0}, 𝐻2 = { 𝑥 𝜖 𝑈| 𝑥2 = 0} 𝜇 𝐴𝐻1 ( 𝑥2) = sup 𝑥1∈[−1,1] 𝜇 𝐴( 𝑥1, 𝑥2) = sup 𝑥1∈[−1,1] 𝑒−(𝑥1 2+𝑥2 2) = 𝑒−𝑥2 2
  • 10. 10 𝜇 𝐴𝐻2 ( 𝑥1) = sup 𝑥2∈[−3,3] 𝜇 𝐴( 𝑥1,𝑥2) = sup 𝑥2∈[−3,3] 𝑒−(𝑥1 2+𝑥2 2) = 𝑒−𝑥1 2 close all; clc; clear all; x1=-1:0.01:1;x2=-3:0.03:3;[x,y]=meshgrid(x1,x2); muA=exp(-(x.^2+y.^2)); figure mesh(x,y,muA) xlabel('x_1');ylabel('x_2');zlabel('e^{-(x_1^2+x_2^2)}') x1=-1:0.01:1;x2=-3:0.03:3;[x,y]=meshgrid(x1,x2); muAH1=exp(-(y.^2)); figure mesh(x,y,muAH1) xlabel('x_1');ylabel('x_2');zlabel('e^{-(x_2^2)}') x1=-1:0.01:1;x2=-3:0.03:3;[x,y]=meshgrid(x1,x2); muAH2=exp(-(x.^2)); figure mesh(x,y,muAH2) xlabel('x_1');ylabel('x_2');zlabel('e^{-(x_1^2)}')
  • 11. 11 Exercise: 2.6 𝜇 𝐹( 𝑥) = 𝑥; 𝜇 𝐹̅( 𝑥) = 1 − 𝑥 ⇒ 𝜇 𝐹∪𝐹̅( 𝑥) = max 𝑥∈[0,1] {𝜇 𝐹( 𝑥), 𝜇 𝐹̅( 𝑥)} = | 𝑥 − 0.5| + 0.5 ≠ 1 = 𝜇 𝑈( 𝑥) = 1, ∀𝑥 ∈ [0,1] close all; clc; clear all; x=0:0.01:1; muF=x;mubarF=1-x;FUbarF=max(muF,mubarF); figure plot(x,muF,x,mubarF) legend('mu_F','1-mu_F') figure plot(x,FUbarF,x,ones(1,size(x,2))) legend('mu_Fcup(1-mu_F)','mu_U=1','Location','SouthEast') axis([0,1,0,1])
  • 12. 12 Exercise: 2.8 𝜇 𝐴( 𝑥) = 𝑥; 𝜇 𝐵( 𝑥) = 1 − 𝑥, 𝑥 ∈ 𝑈 = [0,1]; ⇒ 𝜇 𝐴∪𝐵( 𝑥) = max 𝑥∈[0,1] {𝜇 𝐴( 𝑥), 𝜇 𝐵( 𝑥)} = | 𝑥 − 0.5| + 0.5 ⇒ 𝜇 𝐴∩𝐵( 𝑥) = min 𝑥∈[0,1] {𝜇 𝐴( 𝑥), 𝜇 𝐵( 𝑥)} = 0.5 − | 𝑥 − 0.5| 𝜇 𝐴( 𝜆𝑥1 + (1 − 𝜆) 𝑥2) ≥ min{𝜇 𝐴( 𝑥1), 𝜇 𝐴( 𝑥2)} 𝜇 𝐴( 𝜆𝑥1 + (1 − 𝜆) 𝑥2) ≥ min{𝜇 𝐵( 𝑥1),𝜇 𝐵( 𝑥2)} 𝜇 𝐴∩𝐵( 𝜆𝑥1 + (1 − 𝜆) 𝑥2) = min{𝜇 𝐴( 𝜆𝑥1 + (1 − 𝜆) 𝑥2), 𝜇 𝐵( 𝜆𝑥1 + (1 − 𝜆) 𝑥2)} ≥ min{min{ 𝜇 𝐴( 𝑥1), 𝜇 𝐴(𝑥2)},min{min{ 𝜇 𝐵( 𝑥1), 𝜇 𝐵(𝑥2)}} ≥ min{min{ 𝜇 𝐴( 𝑥1), 𝜇 𝐵(𝑥1)},min{min{ 𝜇 𝐴( 𝑥2), 𝜇 𝐵(𝑥2)}} = min{𝜇 𝐴⋂𝐵( 𝑥1),𝜇 𝐴⋂𝐵( 𝑥2)} 𝜇 𝐴∪𝐵( 𝜆𝑥1 + (1 − 𝜆) 𝑥2) = max{𝜇 𝐴( 𝜆𝑥1 + (1 − 𝜆) 𝑥2), 𝜇 𝐵( 𝜆𝑥1 + (1 − 𝜆) 𝑥2)} = 𝑚𝑎𝑥 {min{𝜇 𝐴( 𝑥1),𝜇 𝐴(𝑥2)},min{min{ 𝜇 𝐵( 𝑥1), 𝜇 𝐵(𝑥2)}} = max{min{ 𝜇 𝐴( 𝑥1),𝜇 𝐵(𝑥1)},min{min{ 𝜇 𝐴( 𝑥2), 𝜇 𝐵(𝑥2)}} ≠ min{ max { 𝜇 𝐴( 𝑥1), 𝜇 𝐵(𝑥1)},min{min{ 𝜇 𝐴( 𝑥2),𝜇 𝐵(𝑥2)}} = min{𝜇 𝐴∪𝐵( 𝑥1), 𝜇 𝐴∪𝐵( 𝑥2)} 𝑥1 = 0.2, 𝑥2 = 0.8 ⇒ 𝜇 𝐴∪𝐵(0.2) = 𝜇 𝐴∪𝐵(0.8) = 0.8 = min{𝜇 𝐴∪𝐵(0.2), 𝜇 𝐴∪𝐵(0.8)} 𝜇 𝐴∪𝐵(0.2𝜆 + (1 − 𝜆)0.8) ≤ 0.8 = min{𝜇 𝐴∪𝐵(0.2), 𝜇 𝐴∪𝐵(0.8)} 𝜆 = 0.5 ⇒ 𝜇 𝐴∪𝐵(0.5) = 0.5 < 0.8 = min{𝜇 𝐴∪𝐵(0.2), 𝜇 𝐴∪𝐵(0.8)} 𝜇 𝐴∪𝐵 is not convex
  • 13. 13 close all; clc; clear all; x=0:0.01:1; muA=x;muB=1-x;AUB=max(muA,muB);AandB=min(muA,muB); figure plot(x,muA,x,muB) legend('mu_A','mu_B') figure plot(x,AandB) legend('mu_{AcapB}') axis([0,1,0,1]) figure plot(x,AUB) legend('mu_{AcupB}','Location','SouthEast') axis([0,1,0,1])
  • 14. 14