Create a Mamdani fuzzy inference system with two inputs and one output. By default, when you specify the number of inputs and outputs, mamfis
adds three membership functions to each variable.
fis =
mamfis with properties:
Name: "fis"
AndMethod: "min"
OrMethod: "max"
ImplicationMethod: "min"
AggregationMethod: "max"
DefuzzificationMethod: "centroid"
DisableStructuralChecks: 0
Inputs: [1x3 fisvar]
Outputs: [1x1 fisvar]
Rules: [1x27 fisrule]
See 'getTunableSettings' method for parameter optimization.
Name the variables. For this example, give the second input variable and the output variable the same name.
View the membership functions for the first input variable.
Remove the second membership function, mf2
, from the first input variable.
View the membership functions again. The specified membership function has been removed.
If your system has an input variable with the same name as an output variable, you must specify the variable type when removing a membership function. For example, remove the mf3
membership function from the output variable.
View the membership functions of the output variable.