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

setfsi is called with three arguments:

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

which results in

out =
eating

If it is used with five arguments, setfis updates two variable properties.

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

If used with seven arguments, setfis updates 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 
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS