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

5 次查看(过去 30 天)
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);

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Fuzzy Logic in Simulink 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by