MATLAB: 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)

anfisevalfisfuzzyFuzzy Logic Toolboxlogic

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.

Best Answer

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);