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:

# Arguments

Action Taken

3

Set a property of the FIS structure. The properties that may be set are: name, type, andmethod, ormethod, impmethod, addmethod, defuzzmethod, and version.

5

Set a property of an input or output variable of the FIS structure. The properties that may be set are: name and range.

7

Set a property of a membership function. The properties that may be set are: name, type, and params.

The types of the arguments are expected to be:

fis

an FIS structure

property

a string; one of ’name’, ’type’, ’andmethod’, ’ormethod’, ’impmethod’, ’addmethod’, ’defuzzmethod’, and ’version’ (case-insensitive)

property_value

a number (if property is ’version’); a string (otherwise)

in_or_out

either ’input’ or ’output’ (case-insensitive)

var_index

a valid integer index of an input or output FIS variable

var_property

a string; either ’name’ or ’range’

var_property_value

a string (if var_property is ’name’) or a vector range (if var_property is ’range’)

mf

the string ’mf’

mf_index

a valid integer index of a membership function

mf_property

a string; one of ’name’, ’type’, or ’params’

mf_property_value

a 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.

Package: fuzzy-logic-toolkit