Fuzzy Logic Toolbox | ![]() ![]() |
Perform fuzzy inference calculations.
Syntax
output= evalfis(input,fismat) output= evalfis(input,fismat, numPts) [output, IRR, ORR, ARR]= evalfis(input,fismat) [output, IRR, ORR, ARR]= evalfis(input,fismat, numPts)
Description
evalfis has the following arguments:
input
: a number or a matrix specifying input values. If input
is an M-by-N matrix, where N is number of input variables, then evalfis
takes each row of input
as an input vector and returns the M-by-L matrix to the variable, output
, where each row is an output vector and L is the number of output variables.
fismat
: an FIS structure to be evaluated.
The range labels for evalfis are as follows:
The optional range variables for evalfis are only calculated when the input
argument is a row vector, (only one set of inputs is applied). These optional range variables are:
IRR
: the result of evaluating the input values through the membership functions. This is a matrix of size numRules-by-N, where numRules is the number of rules, and N is the number of input variables.
ORR
: the result of evaluating the output values through the membership functions. This is a matrix of size numPts
-by-numRules*L, where numRules is the number of rules, and L is the number of outputs. The first numRules columns of this matrix correspond to the first output, the next numRules columns of this matrix correspond to the second output, and so forth.
ARR
: the numPts
-by-L matrix of the aggregate values sampled at numPts
along the output range for each output.
When invoked with only one range variable, this function computes the output vector, output,
of the fuzzy inference system specified by the structure, fismat
,
for the input value specified by the number or matrix, input
.
Examples
See Also
![]() | dsigmf | evalmf | ![]() |