| Fuzzy Logic Toolbox | ![]() |
Synopsis
a = addvar(a,'varType','varName',varBounds)
Description
addvar has four arguments in this order:
'input' or 'output')Indices are applied to variables in the order in which they are added, so the first input variable added to a system will always be known as input variable number one for that system. Input and output variables are numbered independently.
Example
a=newfis('tipper');
a=addvar(a,'input','service',[0 10]);
getfis(a,'input',1)
Name = service
NumMFs = 0
MFLabels =
Range = [0 10]
See Also
| addrule | anfis | ![]() |