| Fuzzy Logic Toolbox | ![]() |
Defuzzify membership function.
Syntax
Description
defuzz(x,mf,type) returns a defuzzified value out, of a membership function mf positioned at associated variable value x, using one of several defuzzification strategies, according to the argument, type. The variable type can be one of the following:
centroid: centroid of area method
bisector: bisector of area method
mom: mean of maximum method
som: smallest of maximum method
lom: largest of maximum method
If type is not one of the above, it is assumed to be a user-defined function. x and mf are passed to this function to generate the defuzzified output.
Examples
| convertfis | dsigmf | ![]() |