Function Reference: getfis

Function File: retval = getfis (fis)
Function File: retval = getfis (fis, property)
Function File: retval = getfis (fis, in_or_out, var_index)
Function File: retval = getfis (fis, in_or_out, var_index, var_property)
Function File: retval = getfis (fis, in_or_out, var_index, mf, mf_index)
Function File: retval = getfis (fis, in_or_out, var_index, mf, mf_index, mf_property)

Return or print the property (field) values of an FIS structure specified by the arguments.

There are six forms of getfis:

Number of ArgumentsAction Taken
1Print (some) properties of an FIS structure on standard output. Return the empty set.
2Return a specified property of the FIS structure. The properties that may be specified are: name, type, version, numinputs, numoutputs, numinputmfs, numoutputmfs, numrules, andmethod, ormethod, impmethod, addmethod, defuzzmethod, inlabels, outlabels, inrange, outrange, inmfs, outmfs, inmflabels, outmflabels, inmftypes, outmftypes, inmfparams, outmfparams, and rulelist.
3Print the properties of a specified input or output variable of the FIS structure. Return the empty set.
4Return a specified property of an input or output variable. The properties that may be specified are: name, range, nummfs, and mflabels.
5Print the properties of a specified membership function of the FIS structure. Return the empty set.
6Return a specified property of a membership function. The properties that may be specified 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’, ’version’, ’numinputs’, ’numoutputs’, ’numinputmfs’, ’numoutputmfs’, ’numrules’, ’andmethod’, ’ormethod’, ’impmethod’, ’addmethod’, ’defuzzmethod’ ’inlabels’, ’outlabels’, ’inrange’, ’outrange’, ’inmfs’, ’outmfs’, ’inmflabels’, ’outmflabels’, ’inmftypes’, ’outmftypes’, ’inmfparams’, ’outmfparams’, and ’rulelist’ (case-insensitive)
in_or_outeither ’input’ or ’output’ (case-insensitive)
var_indexa valid integer index of an input or output FIS variable
var_propertya string; one of: ’name’, ’range’, ’nummfs’, and ’mflabels’
mfthe string ’mf’
mf_indexa valid integer index of a membership function
mf_propertya string; one of ’name’, ’type’, or ’params’

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

See also: setfis, showfis