<< about_FLT sciFLT addrule >>

sciFLT >> sciFLT > addmf

addmf

Add a new member function to a fls structure

Calling Sequence

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

Parameters

fls_input:

fuzzy logic system (as input).

fls:

fuzzy logic system (as output).

input_output:

string. "input" for input variable, "output" for output variable.

var_index:

integer. Variable number.

mf_name:

string. Member function tag-name

mf_type:

string. Member function type.

mf_par:

row vector of reals. Member function 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

Authors


Report an issue
<< about_FLT sciFLT addrule >>