Main Content

Fuzzy rule

Use `fisrule`

objects to represent fuzzy if-then rules that
relate input membership function conditions to corresponding output membership functions. The
*if* portion of a fuzzy rule is the *antecedent*,
which specifies the membership function for each input variable. The *then*
portion of a fuzzy rule is the *consequent*, which specifies the membership
function for each output variable. For more information on membership functions and fuzzy
rules, see Foundations of Fuzzy Logic.

To create fuzzy rule objects, use the `fisrule`

function. Using this
function, you can create a single fuzzy rule or a vector of multiple fuzzy rules.

`rule = fisrule`

creates a single fuzzy rule with the default
description `"input1==mf1 => output1=mf1"`

.

creates one or more fuzzy rules using the text descriptions in
`rule`

= fisrule(`ruleText`

)`ruleText`

.

creates one or more fuzzy rules using the numeric rule values in
`rule`

= fisrule(`ruleValues`

,`numInputs`

)`ruleValues`

. Specify the number of rule input variables using
`numInputs`

.

`update` | Update fuzzy rule using fuzzy inference system |

`mamfis`

| `sugfis`

| `mamfistype2`

| `sugfistype2`

| `fisvar`

| `fismf`