You are on page 1of 8

Experiment 1

Fig 1.1

Fig 1.2 Union of two fuzzy sets

Fig 1.3 Intersection of Fuzzy sets.


Output
(1) To find union of A and B
enter the first matrix[1 0.5 0.2 0.3]
enter the second matrix[0.5 0.7 0.2 0.4]
enter the option1
w=
1.0000 0.7000 0.2000 0.4000
(2) To find Intersection of A and B is
enter the first matrix[1 0.5 0.2 0.3]
enter the second matrix[0.5 0.7 0.2 0.4]
enter the option2
p=
0.5000 0.5000 0.2000 0.3000
(3) To find complement of A
enter the first matrix[1 0.5 0.2 0.3]
enter the second matrix[0.5 .7 .2 .4]
enter the option3
enter the whether to find complement for first matrix or second matrix
1
q=
0 0.5000
q=
0 0.5000 0.8000 0.7000
(4) To find complement of B
enter the first matrix[1 0.5 0.2 0.3]
enter the second matrix[0.5 .7 .2 .4]
enter the option3
enter the whether to find complement for first matrix or second matrix
2
q=
0.5000 0.3000 0.8000 0.6000
Experiment 2

Output

enter the first vector[0.2 0.3 0.4;0.3 0.5 0.7;1 0.8 0.6]
R
0.2000 0.3000 0.4000
0.3000 0.5000 0.7000
1.0000 0.8000 0.6000
enter the second vector[0.1 1;0.4 0.2;0.3 0.7]
s
0.1000 1.0000
0.4000 0.2000
0.3000 0.7000
ans
the fuzzy relation between two vectors is
h
0.3000 0.4000
0.4000 0.7000
0.4000 1.0000
Experiment 3

Fig. 1

Fig. 2
Fig. 3

Output

Fig 3.1 Triangular and Gaussian membership functions


Experiment. 4

Output

Enter the relational matrix[O.l 0.6 0.8 1;1 0.7 0.4 0.2;0 0.6 1 0.5;
0.1 0.5 1 0.9]
R
0.1000 0.6000 0.8000 1. 0000
1. 0000 0.7000 0.4000 0.2000
0 0.6000 1. 0000 0.5000
0.1000 0.5000 1.0000 0.9000
enter the lambda value 0.6
lambda =
0.6000
ans
the crisp value is
b
0111
1100
0110
0011

Experiment. 5
Open Fis Editor

Open Membership function editor Design input membership function

Design output membership function Define Rule base


1) If the motor is running too slow, then more voltage.
2) If motor speed is about right, then no change.
3) If motor speed is too fast, then less voltage.
Add rules

Open rule viewer


Experiment 6

Output

>> AUTO ASSOCIATIVE NETWORK-----HEBE RULE


INPUT VECTOR
s=
1 1 1 -1
WEIGHTS TO STORE THE GIVEN VECTOR IS
w
1 1 1 -1
1 1 1 -1
1 1 1 -1
-1 -1 -1 1
TESTING THE NET WITH VECTOR
ip =
1 -1 -1 -1
PATTERN IS NOT RECOGNIZED

Experiment 7

Output

enter the first vector[0.2 0.3 0.4;0.3 0.5 0.7;1 0.8 0.6]
R
0.2000 0.3000 0.4000
0.3000 0.5000 0.7000
1.0000 0.8000 0.6000
enter the second vector[0.1 1;0.4 0.2;0.3 0.7]
s
0.1000 1.0000
0.4000 0.2000
0.3000 0.7000
ans
the fuzzy relation between two vectors is
h
0.3000 0.4000
0.4000 0.7000
0.4000 1.0000
Experiment.8

Output

>> AUTO ASSOCIATIVE NETWORK-----HEBE RULE


INPUT VECTOR
s=
1 1 1 -1
WEIGHTS TO STORE THE GIVEN VECTOR IS
w
1 1 1 -1
1 1 1 -1
1 1 1 -1
-1 -1 -1 1
TESTING THE NET WITH VECTOR
ip =
1 -1 -1 -1
PATTERN IS NOT RECOGNIZED

You might also like