| Fuzzy Logic Toolbox | ![]() |
A specific example would be helpful at this point. To illustrate the value of fuzzy logic, we'll show two different approaches to the same problem: linear and fuzzy. First we will work through this problem the conventional (nonfuzzy) way, writing MATLAB commands that spell out linear and piecewise-linear relations. Then we'll take a quick look at the same system using fuzzy logic.
Consider the tipping problem: what is the right amount to tip your waitperson? Here is a clear statement of the problem.
The Basic Tipping Problem. Given a number between 0 and 10 that represents the quality of service at a restaurant (where 10 is excellent), what should the tip be?
Note This problem is based on tipping as it is typically practiced in the United States. An average tip for a meal in the U.S. is 15%, though the actual amount may vary depending on the quality of the service provided. |
| What Can the Fuzzy Logic Toolbox Do? | The Nonfuzzy Approach | ![]() |
© 1994-2005 The MathWorks, Inc.