Function Reference: setfis

Function File: fis = setfis (fis, property, property_value)
Function File: fis = setfis (fis, in_or_out, var_index, var_property, var_property_value)
Function File: fis = setfis (fis, in_or_out, var_index, mf, mf_index, mf_property, mf_property_value)

Set a property (field) value of an FIS structure and return the updated FIS.

There are three forms of setfis:

Number of ArgumentsAction Taken
3Set a property of the FIS structure. The properties that may be set are: name, type, andmethod, ormethod, impmethod, addmethod, defuzzmethod, and version.
5Set a property of an input or output variable of the FIS structure. The properties that may be set are: name and range.
7Set a property of a membership function. The properties that may be set are: name, type, and params.

The types/values of the arguments are expected to be:

ArgumentExpected Type or Value
fisan FIS structure
propertya string; one of ’name’, ’type’, ’andmethod’, ’ormethod’, ’impmethod’, ’addmethod’, ’defuzzmethod’, and ’version’ (case-insensitive)
property_valuea number (if property is ’version’); a string (otherwise)
in_or_outeither ’input’ or ’output’ (case-insensitive)
var_indexa valid integer index of an input or output FIS variable
var_propertya string; either ’name’ or ’range’
var_property_valuea string (if var_property is ’name’) or a vector range (if var_property is ’range’)
mfthe string ’mf’
mf_indexa valid integer index of a membership function
mf_propertya string; one of ’name’, ’type’, or ’params’
mf_property_valuea string (if mf_property is ’name’ or ’type’); an array (if mf_property is ’params’)

Note that all of the strings representing properties above are case insensitive.

See also: newfis, getfis, showfis