| Fuzzy Logic Toolbox | ![]() |
To evaluate the output of a fuzzy system for a given input, use the function evalfis. For example, the following script evaluates tipper at the input, [1 2].
a = readfis('tipper');
evalfis([1 2], a)
ans =
5.5586
This function can also be used for multiple collections of inputs, since different input vectors are represented in different parts of the input structure. By doing multiple evaluations at once, you get a tremendous boost in speed.
evalfis([3 5; 2 7], a)
ans =
12.2184
7.7885
| Building a System from Scratch | The FIS Structure | ![]() |
© 1994-2005 The MathWorks, Inc.