Open Surface Viewer
Use the Surface Viewer to view the output surface for your fuzzy system. To view the output surface, 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 Surface Viewer. For more information on interactively creating fuzzy systems, see Build Fuzzy Systems Using Fuzzy Logic Designer.
Open Surface Viewer
Load or create a fuzzy inference system object. For this example, load the fuzzy system from a file.
fis = readfis('tipper');
Open the Surface Viewer for this fuzzy system.
fis — Fuzzy inference system
mamfis object |
sugfis object |
mamfistype2 object |
Fuzzy inference system, specified as one of the following:
The Surface Viewer is the only interface of the Fuzzy Logic Designer app that supports type-2 fuzzy inference systems.
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.
For systems with more than two input variables, you can view the output surface for any combination of two inputs. You must specify constant reference values for any other input signals using the Ref. Input value.
By default, the surface plot updates automatically when you change the input or output variable selections or the number of grid points. To disable automatic plot updates, in the Options menu, clear the Always evaluate option. When this option is disabled, to update the plot, click Evaluate.
To create a smoother plot, increase the Plot points value.
To view the surface from different angles, click and drag on the plot area.
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