%% Set Membership Function Properties in FIS
% Load a fuzzy inference system.

fis = readfis('tipper');

%
% Change the type of the second membership function of the first input variable to a triangular membership function. Changing the type of a membership function will automatically update its parameter values.

fis.Inputs(1).MembershipFunctions(2).Type = "trimf";

%
% View the updated membership function properties.

fis.Inputs(1).MembershipFunctions(2)