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.

defuzz<br />

Purpose<br />

Syntax<br />

Description<br />

Defuzzify membership function<br />

out = defuzz(x,mf,type)<br />

defuzz(x,mf,type) returns a defuzzified value out, ofamembership<br />

function mf positioned at associated variable value x, usingoneof<br />

several defuzzification strategies, according to the argument, type. The<br />

variable type canbeoneofthefollowing:<br />

• centroid: centroid of area<br />

• bisector: bisectorofarea<br />

• mom: mean value of maximum<br />

• som: smallest (absolute) value of maximum<br />

• lom: largest (absolute) value of maximum<br />

If type is not one of those listed, <strong>Fuzzy</strong> <strong>Logic</strong> Toolbox software assumes<br />

it to be a user-defined function. x and mf are passed to this function to<br />

generate the defuzzified output.<br />

Examples x = -10:0.1:10;<br />

mf = trapmf(x,[-10 -8 -4 7]);<br />

xx = defuzz(x,mf,'centroid');<br />

4-12

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

Saved successfully!

Ooh no, something went wrong!