How to fix Undefined function or variable 'anfisOptions'.

 Accepted Answer

The anfisOptions function was introduced in R2017a.
If you have the R2017a version of the Fuzzy Logic Toolbox, and you cannot access the function, first try running these lines from your Command Window or a script:
restoredefaultpath
rehash toolboxcache
If that fails, Contact Support.

3 Comments

Thank you. I was using R2016b. I guess that was the problem.
I tried this and now I cannot run any functions.

Sign in to comment.

More Answers (2)

Hi,
fis = anfis(trainingdata,opt);
The opt was also introduced in R2017a? I try to replace the anfisOptions with opt.InitialFIS = 4; opt.EpochNumber = 30; but it doesnt work with
fis = anfis(trainingdata,opt);
Thanks, Kong

Categories

Community Treasure Hunt

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

Start Hunting!