setfis

Set fuzzy system properties

Syntax

a = setfis(a,'fispropname','newfisprop')
a = setfis(a,'vartype',varindex,'varpropname','newvarprop')
a = setfis(a,'vartype',varindex,'mf',mfindex,
...
 'mfpropname','newmfprop');

Description

The command setfis can be called with three, five, or seven input arguments, depending on whether you want to set a property of the entire FIS structure, for a particular variable belonging to that FIS structure, or for a particular membership function belonging to one of those variables. The arguments are:

Examples

Called with three arguments,

a = readfis('tipper');
a2 = setfis(a, 'name', 'eating');	
getfis(a2, 'name');

Results in

out =
eating

If used with five arguments, setfis will update two variable properties.

a2 = setfis(a,'input',1,'name','help');
getfis(a2,'input',1,'name')
ans =
	help

If used with seven arguments, setfis will update any of several membership function properties.

a2 = setfis(a,'input',1,'mf',2,'name','wretched');
getfis(a2,'input',1,'mf',2,'name')
ans =
	wretched

See Also

getfis 


© 1994-2005 The MathWorks, Inc.