%% Convert Type-1 FIS to Type-2 FIS
% Create a type-1 fuzzy inference system. For this example, load the tipper.fis file.

fisT1 = readfis('tipper');

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

plotmf(fisT1,"input",1)

%
% Convert fisT1 into a type-2 fuzzy inference system.

fisT2 = convertToType2(fisT1);

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

plotmf(fisT2,"input",1)

% Copyright 2019 The MathWorks, Inc.