%% What Is Sugeno-Type Fuzzy Inference
%% Load FIS

fis = readfis('tippersg');
gensurf(fis)

%
%% Load FIS 2

fis = readfis('sugeno1');
fis.Outputs(1)

%
%% View Membership Function 1

fis.Outputs(1).MembershipFunctions(1)

%
%% View Membership Function 2

fis.Outputs(1).MembershipFunctions(2)

%
%% Show Rules

fis.Rules

%
%% Plot MFs and Surface

subplot(2,1,1)
plotmf(fis,'input',1)
subplot(2,1,2)
gensurf(fis)

% Copyright 2018 The MathWorks, Inc.