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
MathWorks Support Team 2010년 8월 5일
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