<< delmf sciFLT dsigmf >>

sciFLT >> sciFLT > delvar

delvar

Delete variable in fls and return it with this change.

Calling Sequence

fls=delvar( fls_input, var_type , var_idx)

Parameters

fls_input:

fuzzy logic system (as input).

var_type:

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

var_idx:

integer. Variable number.

Description

delvar delete a variable from fuzzy logic system fls_input and return it with this change as fls. This command delete the var_idx variable (depends of var_type parameter) and all associated member functions. 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=addvar(fls,"input","temperature",[0 150])
// DELETE THE FIRST VARIABLE
fls=delvar(fls,"input",1)

See also

Authors


Report an issue
<< delmf sciFLT dsigmf >>