Fuzzy Logic Toolbox | ![]() ![]() |
An Introductory Example: Fuzzy vs. Non-Fuzzy
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 (non-fuzzy) 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?
![]() | What Can the Fuzzy Logic Toolbox Do? | The Non-Fuzzy Approach | ![]() |