Skip to Main Content Skip to Search
Product Documentation

addvar - Add variable to Fuzzy Inference System

Syntax

a = addvar(a,'varType','varName',varBounds) 

Description

addvar has four arguments in this order:

Indices are applied to variables in the order in which they are added, so 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.

Examples

a = newfis('tipper');
a = addvar(a,'input','service',[0 10]);
getfis(a,'input',1)

This command returns the following result:

	Name = service
	NumMFs = 0
	MFLabels =
	Range = [0 10]

See Also

addmf | addrule | rmmf | rmvar

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS