(To be removed) Open Surface Viewer
surfview will be removed in a future release. For more information,
see To be removed.
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:
mamfisobject — Mamdani fuzzy inference system
sugfisobject — Sugeno fuzzy inference system
mamfistype2object — Type-2 Mamdani fuzzy inference system
sugfistype2object — Type-2 Sugeno fuzzy inference system
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.
Version HistoryIntroduced before R2006a
R2022b: To be removed
surfview will be removed in a future release.
To interactively view the surface plot for a fuzzy inference system, open the Fuzzy Logic
Designer app using the
fuzzyLogicDesigner(fis) command. Then, on
the Design tab, in the Simulation section, click
R2019b: Support for fuzzy inference system structures will be removed
Support for representing fuzzy inference systems as structures will be removed in a future
sugfis objects with
this function instead. To convert existing fuzzy inference system structures to objects, use
This change was announced in R2018b. Using fuzzy inference system structures with this function issues a warning starting in R2019b.