Fuzzy Logic Toolbox    
addmf

Add a membership function to an FIS.

Synopsis

Description

A membership function can only be added to a variable in an existing MATLAB workspace FIS. Indices are assigned to membership functions in the order in which they are added, so the first membership function added to a variable will always be known as membership function number one for that variable. You cannot add a membership function to input variable number two of a system if only one input has been defined.

The function requires six input arguments in this order:

  1. A MATLAB variable name of a FIS structure in the workspace
  2. A string representing the type of variable you want to add the membership function to ('input' or 'output')
  3. The index of the variable you want to add the membership function to
  4. A string representing the name of the new membership function
  5. A string representing the type of the new membership function
  6. The vector of parameters that specify the membership function

Example

See Also

addrule, addvar, plotmf, rmmf, rmvar


 Alphabetical List of Functions addrule