Add a new variable to a fls and return it
fls=addvar( fls_input , var_type , var_name , var_range )
fuzzy logic system (as input).
fuzzy logic system (as output).
string. "input"
for input variable, "output"
for output variable.
string. Variable tag-name.
row vector with two elements [minDom MaxDom]
. Variable range, minDom
for minimum value and maxDom
for maximum value of the variable.
addvar
add a new variable to fuzzy logic system
fls_input
and return it with this change as fls
.
This command add the variable named var_name
with range
[minDom, maxDom]
in the input or output (depends of
var_type
parameter). If the fuzzy logic system have rules,
add a new column in rules reflecting the new variable.