Fuzzy Logic Controller with Ruleviewer
Evaluate fuzzy inference system and view rules
Fuzzy Logic Toolbox
The Fuzzy Logic Controller with Ruleviewer block implements a fuzzy inference system (FIS) in Simulink® and displays the fuzzy inference process in the Rule Viewer during the simulation. You specify the FIS to evaluate using the FIS matrix parameter. To change the time between Rule Viewer updates, specify the Refresh rate in seconds.
For more information on fuzzy inference, see Fuzzy Inference Process.
The Fuzzy Logic Controller with Ruleviewer block does not support all the features supported by the Fuzzy Logic Controller block. The Fuzzy Logic Controller with Ruleviewer block:
Only supports double-precision data.
101points for discretizing output variable ranges.
Interpreted executionsimulation mode.
Does not have additional output ports for accessing intermediate fuzzy inference results.
Refresh rate — Time between rule viewer updates
Time between rule viewer updates in seconds, specified as a scalar. During simulation, the Rule Viewer display updates at the specified rate to show the inference process for the latest input signal values.
|Type: string, character vector|
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Usage notes and limitations:
Generating code using the Fuzzy Logic Controller with Ruleviewer block produces the same code as using the Fuzzy Logic Controller block. However, the Fuzzy Logic Controller with Ruleviewer block does not support:
Generating code for single-point or fixed-point data.
Changing the number of samples for discretizing the output variable range.
Version HistoryIntroduced before R2006a
R2019b: Support for fuzzy inference system structures will be removed
Support for representing fuzzy inference systems as structures will be removed in
a future release. Use
objects with this function instead. To convert existing fuzzy inference system
structures to objects, use the
This change was announced in R2018b. Using fuzzy inference system structures with this block issues a warning starting in R2019b.