%% Convert Type-2 FIS to Type-1 FIS
% Create a type-2 fuzzy inference system. For this example, Create a type-2 Mamdani FIS with two inputs, one output.

fisT2 = mamfistype2("NumInputs",2,"NumOutputs",1);

%
% View the membership function for the first input variable.

plotmf(fisT2,"input",1)

%
% Convert fisT2 into a type-1 fuzzy inference system.

fisT1 = convertToType1(fisT2);

%
% View the converted membership functions for the first input variable.

plotmf(fisT1,"input",1)

% Copyright 2019 The MathWorks, Inc.
%