Fuzzy Logic Toolbox | ![]() ![]() |
Generate an FIS output surface.
Syntax
gensurf(f
is) gensurf(fis,inputs,output)gensurf(fis,inputs,output,grids)
gensurf(fis,inputs,output,grids,refinput)
Description
gensurf(fis)
generates a plot of the output surface of a given fuzzy inference system (fis
) using the first two inputs and the first output.
gensurf(fis,inputs,output)
generates a plot using the inputs (one or two) and output (only one is allowed) given, respectively, by the vector, inputs,
and the scalar, output
.
gensurf(fis,inputs,output,grids)
allows you to specify the number of grids in the X (first, horizontal) and Y (second, vertical) directions. If grids
is a two element vector, the grids in the X and Y directions can be set independently.
gensurf(fis,inputs,output,grids,refinput)
can be used if there are more than two outputs. The length of the vector refinput
is the same as the number of inputs:
NaN
s for the entries of refinput
corresponding to the inputs whose surface is being displayed.
[x,y,z]=gensurf(...)
returns the variables that define the output surface and suppresses automatic plotting.
Example 1
Example 2
generates the surface of a three-input FIS named Temp
from its first two inputs to its first output, while fixing a reference value for the third input at .2.
See Also
![]() | genfis2 | getfis | ![]() |