Fuzzy Logic Controller with Ruleviewer
R2026bEvaluate fuzzy inference system and view rules
Libraries:
Fuzzy Logic Toolbox
Description
The Fuzzy Logic Controller with Ruleviewer block implements a fuzzy inference system (FIS) in Simulink® and displays the fuzzy inference process in a rule viewer plot during the simulation. You specify the FIS to evaluate using the FIS name parameter. To change the time between rule viewer updates, specify the Refresh rate parameter 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.
Uses
101points for discretizing output variable ranges.Only supports
Interpreted executionsimulation mode.Does not have additional output ports for accessing intermediate fuzzy inference results.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"fuzblock/Fuzzy Logic Controller with Ruleviewer"
Example: add_block("fuzblock/Fuzzy Logic Controller with Ruleviewer","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.
