close all
clear all
clc
x=(0:0.01:10)';
a= trimf(x,[2,5,8]);
b=gaussmf(x,[2,3]);
% Drastic Sum
s1=zeros(1001)';
for y=1:length(x)
if min(a(y),b(y))==0
s1(y)=max(a(y),b(y));
else s1(y)=1;
end
end
z = plot(x,a,x,b,x,s1,'o-');


