Why does the EVALFIS function give an error when implementing the example in the "anfis from the Command Line" section of the documentation for Fuzzy Logic Toolbox 2.2 (R14SP1)?

1 view (last 30 days)
I attempted to run the example code from the "anfis from the Command Line" tutorial that I access by typing the following at the command prompt:
web([docroot,'/toolbox/fuzzy/fp25193.html'])
The example runs fine until the following EVALFIS command:
anfis_output = evalfis([trnData; chkData], fismat2);
and I receive the following error:
??? Error using ==> evalfis
The first argument should have as many columns as input variables and
as many rows as independent sets of input values.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This change has been incorporated into the documentation in Release 14 Service Pack 3 (R14SP3). For previous releases, read below for any additional information:
This has been verified as an error in the documentation for Fuzzy Logic Toolbox 2.2 (R14SP1) within the "anfis from the Command Line" tutorial. The EVALFIS command in this documentation should read as follows:
anfis_output = evalfis([trnData(:,1:4); chkData(:,1:4)], fismat2);

More Answers (0)

Categories

Find more on Fuzzy Logic Toolbox in Help Center and File Exchange

Products


Release

R14SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!