Fuzzy_operation
Fuzzy_operation
Fuzzy_operation
: 1
Development of Fuzzy Membership Functions, fuzzy set
Operation and fuzzy set Properties
<<AI >> Lab Manual for 5th year Industrial control Under graduate
student @ BiT
Aim:
Objectives:
Learn mathematical basis as well as the general principles of various soft computing
techniques.
To analyze the applications using fuzzy set which uses current techniques, skills, and tools
necessary for computing.
Understand the fuzzy arithmetic concepts.
Example 1:
x=0:0.01:10;
a = 1; b = 4; c = 6; d = 8; a1 = 5; a2 = 4; c1 = 3; c2 = 9; b2=7;
y11 = trimf (x, [a1 b2 c2]);
y1 = trimf (x, [a b c]);
y2 = trapmf (x, [a b c d]);
y3 = gaussmf (x, [a c]);
y4 = gbellmf (x, [a b c]);
y5 = sigmf(x, [a c]);
y6 = dsigmf(x, [a1 c1 a2 c2]);
y7 = psigmf(x, [a1 c1 a2 c2]);
y8 = pimf(x, [a b c d]);
y9 = zmf(x, [a b]);
y10 = smf(x, [a b]);
%% Ploting The above membership function on a single figure
plot (x, y1)
title('Triangular MF')
subplot(5, 2, 1)
ylim([-0.05 1.05])
subplot(5, 2, 6)
ylim([-0.05 1.05])
%% Complement
y13=1-y1;
plot(x,y1);
hold
plot(x, y13)
Example 2:
Exercise:
1) Using MATLAB commands draw the triangular & Gaussian membership function for x =
0 to 10 with increment of 0.1. Triangular membership function is defined between [5 6 7]
& Gaussian function is defined between 2 & 4.
2) Consider three fuzzy sets and one null set:
A = {0/2 + ¼ + 0.5/6 + 0.4/8 + 0.6/10}
A = {0/2 + 0.5 + 0.7/6 + 0.8/8 + 0.4/10}
A = {0.3/2 + 0.9/4 + 0.2/6 + 0/8 + 1/10}