%% Specify Tunable Parameter Values of a FIS
% Create a fuzzy inference system and define the tunable parameter settings of inputs, outputs, and rules.

fis = mamfis('Name','fis1','NumInputs',2,'NumOutputs',1);
[in,out,rule] = getTunableSettings(fis);

% Obtain tunable parameter values of the inputs, outputs, and rules of the fuzzy inference system.

paramVals = getTunableValues(fis,[in;out;rule]);

% Redefine some of the values and update the tunable parameter values of the FIS.

paramVals(1:3) = [0 0 1];
fis = setTunableValues(fis,[in;out;rule],paramVals);

% Copyright 2018 The MathWorks, Inc.