setfis
Set a property (field) value of an FIS structure and return the updated FIS.
There are three forms of setfis:
| Number of 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/values of the arguments are expected to be:
| Argument | Expected Type or Value |
|---|---|
| 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.