31.10.2014 Views

What Is Fuzzy Logic?

What Is Fuzzy Logic?

What Is Fuzzy Logic?

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

gensurf<br />

Purpose<br />

Syntax<br />

Description<br />

Generate <strong>Fuzzy</strong> Inference System output surface<br />

gensurf(fis)<br />

gensurf(fis,inputs,output)<br />

gensurf(fis,inputs,output,grids)<br />

gensurf(fis,inputs,output,grids,refinput)<br />

gensurf(fis,inputs,output,grids,refinput,numofpoints)<br />

[x,y,z]=gensurf(...)<br />

gensurf(fis) generates a plot of the output surface of a given fuzzy<br />

inference system (fis) usingthefirst two inputs and the first output.<br />

gensurf(fis,inputs,output) generates a plot using the inputs (one or<br />

two) and output (only one is allowed) given, respectively, by the vector,<br />

inputs, and the scalar, output.<br />

gensurf(fis,inputs,output,grids) allows you to specify the number<br />

of grids in the X (first, horizontal) and Y (second, vertical) directions.<br />

If grids is a two element vector, you can set the grids in the X and Y<br />

directions independently.<br />

gensurf(fis,inputs,output,grids,refinput) allows you to specify<br />

a reference input, and can be used if there are more than two outputs.<br />

The length of the vector refinput is the same as the number of inputs:<br />

• Enter NaNs for the entries of refinput corresponding to the inputs<br />

whose surface is being displayed.<br />

• Enter real double scalars to fix the values of other inputs.<br />

gensurf(fis,inputs,output,grids,refinput,numofpoints) allows<br />

you to specify the number of sample points on which to evaluate the<br />

membership functions in the input or output range. If numofpoints is<br />

not specified, a default value of 101 is used.<br />

[x,y,z]=gensurf(...) returns the variables that define the output<br />

surface and suppresses automatic plotting.<br />

4-43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!