%% Create Mamdani Fuzzy Inference System
% Create a Mamdani fuzzy inference system with default property values.

fis = mamfis;

% Modify the system properties using dot notation. For example, configure fis to use centroid defuzzification.

fis.DefuzzificationMethod = "centroid";

% Alternatively, you can specify one of more FIS properties when you create a fuzzy system. For example, create a Mamdani fuzzy system with specified AND and OR methods.

fis = mamfis("AndMethod","prod","OrMethod","probor");

% Copyright 2018 The MathWorks, Inc.