Fuzzy Logic Toolbox    
gensurf

Generate an FIS output surface.

Syntax

[x,y,z]=gensurf(...)

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:

[x,y,z]=gensurf(...) returns the variables that define the output surface and suppresses automatic plotting.

Examples

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

evalfis, surfview


  genfis2 getfis