Why do I receive an error when I use more than one Fuzzy Logic Controller with Ruleviewer in my model using the Fuzzy Logic Toolbox 2.1.2 (R13)?

7 views (last 30 days)
I am using multiple instances of the Fuzzy Logic Controller with Ruleviewer block in my model. In addition, each of these has a different input vector size. When I simulate the model, I receive the following error:
Error in block 'rehabilitacio_herelt/Fuzzy Logic Controller with Ruleviewer/Animation1'
while executing MATLAB file S-function block 'animrule', flag = 2 (update),
at time 0.
MATLAB error message:
Error using ==> evalfis
The first argument should have as many columns as input variables and
as many rows as independent sets of input values
??? Error using ==> evalfis
The first argument should have as many columns as input variables and
as many rows as independent sets of input values.
Error in ==> D:\MATLAB6p5p1\toolbox\fuzzy\fuzzy\ruleview.m
On line 1110 ==> [v,IRR,ORR,ARR]=evalfis(inputVector,fis, numPts);
Error in ==> D:\MATLAB6p5p1\toolbox\fuzzy\fuzdemos\animrule.m
On line 29 ==> ruleview('#simulink', u, figN);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 5 Aug 2010
This bug has been fixed for Release 14 (R14). For previous releases, please read below for any possible workarounds:
This is a bug in the Fuzzy Logic Toolbox 2.1.2 (R13) in the way that the Ruleviewer handles multiple instances with differing input dimensions.
To work around this issue, you will need to use only one Ruleviewer at a time.

More Answers (0)

Categories

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

Community Treasure Hunt

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

Start Hunting!