<< defuzzm sciFLT delvar >>

sciFLT >> sciFLT > delmf

delmf

Delete member function to a fls and return it with this change.

Calling Sequence

fls=delmf( fls_input , input_output , var_index , mf_index )

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_index:

integer. Member function number.

Description

delmf delete a member function from fuzzy logic system fls_input and return it with this change as fls. This command only delete the mf_index member function of the var_index variable if the member function exist in the input or output (depends of input_output parameter). If the fuzzy logic system have rules, then fix the rules reflecting the change.

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]);
fls=delmf(fls,"input",1,2); // Delete the member function named "med" in the input variable number 1 named "speed"

See also

Authors


Report an issue
<< defuzzm sciFLT delvar >>