function

addmf - Add a new member function to a fls structure and return it with this change.

Calling Sequence

fls=addmf( fls_input, input_output , var_index , mf_name , mf_type , mf_par )

Parameters

Description

addmf add a new member function to fuzzy logic system fls_input and return it with this change as fls . This command only add the member function named mf_name with type mf_type and parameters mf_par if the variable var_index exist as input or output (depends of input_output parameter).

Examples

fls=newfls("m");
fls=addvar(fls,"input","speed",[0 100]);
fls=addmf(fls,"input",1,"low","trimf",[-50 0 50]);
fls=addmf(fls,"input",1,"med","trimf",[0 50 100]);
fls=addmf(fls,"input",1,"high","trimf",[50 100 150]);
plotvar(fls,"input",1);

See Also

addvar ,   delvar ,   delmf ,   member_functions ,  

Author

Jaime Urzua Grez