Fuzzy Logic Toolbox    
addvar

Add a variable to an FIS.

Synopsis

Description

addvar has four arguments in this order:

  1. The name of a FIS structure in the MATLAB workspace
  2. A string representing the type of the variable you want to add ('input' or 'output')
  3. A string representing the name of the variable you want to add
  4. The vector describing the limiting range values for the variable you want to add

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

MATLAB replies

See Also

addmf, addrule, rmmf, rmvar


 addrule anfis