%% Add Output Variable to Fuzzy Inference System
% Create a Mamdani fuzzy inference system.

fis = mamfis('Name','tipper');

% Add an output variable with default specifications.

fis = addOutput(fis);

% You can configure the output variable properties using dot notation. For example, specify the name and range for the variable.

fis.Outputs(1).Name = "tip";
fis.Outputs(1).Range = [10 30];

% View the output variable.

fis.Outputs(1)

% You can also specify the variable name and range when you add it to the fuzzy system.

fis2 = mamfis('Name','tipper');
fis2 = addOutput(fis2,[10 30],'Name',"tip");

% Copyright 2018 The MathWorks, Inc.