You are on page 1of 1

EXPERIMENT NO 8

Aim : Composition of fuzzy relation


Software used : MATLAB
Code implement :
clc;
clear all;
R= [0.5,0.1;0.2,0.9;0.8,0.6];
S=[0.6,0.4,0.7;0.5,0.8,0.9];
T=[0,0,0;0,0,0;0,0,0];
T(1,1)=max(min(R(1,1),S(1,1)),min(R(1,2),S(2,1)));
T(1,2)=max(min(R(1,1),S(1,2)),min(R(1,2),S(2,2)));
T(1,3)=max(min(R(1,1),S(1,3)),min(R(1,2),S(2,3)));
T(2,1)=max(min(R(2,1),S(1,1)),min(R(2,2),S(2,1)));
T(2,2)=max(min(R(2,1),S(1,2)),min(R(2,2),S(2,2)));
T(2,3)=max(min(R(2,1),S(1,3)),min(R(2,2),S(2,3)));
T(3,1)=max(min(R(3,1),S(1,1)),min(R(3,2),S(2,1)));
T(3,2)=max(min(R(3,1),S(1,2)),min(R(3,2),S(2,2)));
T(3,3)=max(min(R(3,1),S(1,3)),min(R(3,2),S(2,3)));
disp(T);

OUTPUT :

You might also like