%% Create Type-2 Membership Function
% Create type-2 membership function with default settings.

mf = fismftype2;

% To modify the membership function settings, use dot notation. For example, specify a Gaussian upper membership function with a standard deviation of 2 and a mean of 10.

mf.Type = "gaussmf";
mf.UpperParameters = [2 10];

% Specify the maximum lower membership function value as 0.8.

mf.LowerScale = 0.8;

% Configure the lower membership function to start increasing when the upper membership function reaches 0.3.

mf.LowerLag = 0.3;

% Copyright 2019 The MathWorks, Inc.