Aim – To implement DeMorgen’s Law using Matlab
Tools – MATLAB
Program –
clc
a=[0.3 0.4 0.6
0.1]
b=[0.1 0.6 0.3
0.5]
disp('=====================================================================');
disp('Demorgans
Law');
demu=(1-max(a,b))
demu1=min(1-a,1-b)
if(demu ==
demu1)
disp('Demorgans Law is Satisfied For
Union');
end
disp('=====================================================================');
demi=(1-min(a,b))
demi1=max(1-a,1-b)
if(demi ==
demi1)
disp('Demorgans Law is Satisfied For
Intersect');
end
OUTPUT-
0 Comments