Add a new member function to a fls structure
fls=addrule(fls_input,rule_matrix)
fuzzy logic system (as input).
fuzzy logic system (as output).
each row of the rule matrix represents one rule and has the form [in1_mf ... inM_mf out1_mf ... outN_mf connect weight]
To express:
"not" -- prepend a minus sign to the membership function index
"somewhat" -- append ".05" to the membership function index
"very" -- append ".20" to the membership function index
"extremely" -- append ".30" to the membership function index
"very very" -- append ".40" to the membership function index
To omit an input or output, use 0 for the membership function index. The consequent connective is always "and".