addvar

Add a variable to an FIS

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 will always be 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)

MATLAB replies

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

See Also

addmf, addrule, rmmf, rmvar


© 1994-2005 The MathWorks, Inc.