Open Surface Viewer
The Surface Viewer is a graphical interface that lets you examine the output surface of an FIS for any one or two inputs. You can examine an FIS that is:
Stored in a file using
fileName is a character vector or string with or without
In the MATLAB® workspace using
fis is a
Because it does not alter the fuzzy system or its associated FIS object in any way, Surface Viewer is a read-only editor. Using the drop-down menus, you select the two input variables you want assigned to the two input axes (X and Y), as well the output variable you want assigned to the output (or Z) axis.
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.
If you want to create a smoother plot, use the Plot points field
to specify the number of points on which the membership functions are evaluated in the
input or output range. This field defaults to the minimum number of plot plots,
101. If you specify fewer plot points, the field value
automatically resets to
101. When you specify the number of plot
points, the surface plot automatically updates.
By clicking on the plot axes and dragging the mouse, you can manipulate the surface so that you can view it from different angles.
If there are more than two inputs to your system, you must supply the constant values associated with any unspecified inputs in the reference input section.
Refer to The Surface Viewer for more information about how to use
In the Surface Viewer, there is a menu bar that allows you to open related UI tools, open and save systems, and so on. The Surface Viewer uses the same File menu as the one on the Fuzzy Logic Designer:
Use the Edit menu items:
Undo to undo the most recent action
FIS properties to open the Fuzzy Logic Designer
Membership functions to invoke the Membership Function Editor
Rules... to invoke the Rule Editor
Use the View menu item:
Rules to invoke the Rule Viewer
Use the Options menu items:
Plot to choose among eight different kinds of plot styles.
Color Map to choose among several different color schemes.
Always evaluate to automatically evaluate and plot a new surface every time you make a change that affects the plot, such as changing the number of grid points. This option is selected by default. To clear this option, select it once more.
Not recommended starting in R2018b
Support for representing fuzzy inference systems as structures will be removed in a future release. Use
sugfis objects 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 that 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