Open Rule Viewer
Use the Rule Viewer to view the inference process for your fuzzy system. You can adjust the input values and view the corresponding output of each fuzzy rule, the aggregated output fuzzy set, and the defuzzified output value. To view the inference process, you must specify the input and output variables of your FIS, their corresponding membership functions, and the fuzzy rules for your system.
The Fuzzy Logic Designer app consists of several interactive interfaces for creating a fuzzy inference system (FIS), including the Rule Viewer. For more information on interactively creating fuzzy systems, see Build Fuzzy Systems Using Fuzzy Logic Designer.
Open Rule Viewer
Load or create a fuzzy inference system object. For this example, load the fuzzy system from a file.
fis = readfis('tipper');
Open the Rule Viewer for this fuzzy system.
fis — Fuzzy inference system
mamfis object |
Fuzzy inference system, specified as either a
sugfis object in the MATLAB® workspace.
fileName — File name
string | character vector
File name specified as a string or character vector with or without the
.fis extension. This file must be in the current working directory
or on the MATLAB path.
Support for representing fuzzy inference systems as structures will be removed
Warns starting in R2019b
Support for representing fuzzy inference systems as structures will be removed in a future
instead. There are differences between these representations that require updates to your
code. These differences include:
Object property names that differ from the corresponding structure fields.
Objects store text data as strings rather than as character vectors.
Also, all Fuzzy Logic Toolbox™ functions that accepted or returned fuzzy inference systems as structures now
accept and return either
To convert existing fuzzy inference system structures to objects, use the