(To be removed) Add variable to fuzzy inference system
addvar
will be removed in a future release. Use
addInput
or addOutput
instead. For more
information, see Compatibility Considerations.
fis = addvar(fis,varType,varName,varBounds)
addvar
has four input arguments:
fis
— Fuzzy inference system in the MATLAB® workspace, specified as a FIS structure.
varType
— Type of variable to add, specified as
'input'
or 'output'
.
varName
— Name of the variable to add, specified as a
character vector or string.
varBounds
— Variable range, specified as a two-element
vector, where the first element is the minimum value and the second element is
the maximum value for the variable.
Indices are applied to variables in the order in which they are added. Therefore, the first input variable added to a system is always known as input variable number one for that system. Input and output variables are numbered independently.