Fuzzy Ruleviewer

4 visualizzazioni (ultimi 30 giorni)
Kai Hao Then
Kai Hao Then il 8 Apr 2011
Risposto: Sam Chak il 16 Apr 2025
I have made a system using fuzzy logic in m-file. Is it possible to show the ruleviewer like "Fuzzy Logic Controller with Ruleviewer" in the GUI?

Risposte (1)

Sam Chak
Sam Chak il 16 Apr 2025
Unlike the ruleview(fis) command, which generates a UI-based image, the new function plotrule(fis), introduced in the R2024b release, allows users to generate a clean image of the fuzzy rule inference. However, I have doubts about its ability to be used directly for animating the fuzzy inference process during simulation, as seen in the sltankrule Simulink model that utilizes the 'Fuzzy Logic Controller with Ruleviewer' block.
Nevertheless, I believe that users can create a similar tiled layout in the App Designer and set a refresh rate to update the display of the rule inference process for the current input signal values.
%% Load FIS
fis = readfis("tipper.fis");
%% Clean fuzzy rule inference diagram
plotrule(fis, Inputs=[5, 5])
%% UI-based fuzzy rule inference diagram
ruleview(fis)
Warning: ruleview will be removed in a future release. Use the Fuzzy Logic Designer app instead.

Categorie

Scopri di più su Fuzzy Logic Toolbox in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by