Fuzzy Logic Toolbox Error 2014a

조회 수: 1 (최근 30일)
Darryl
Darryl 2014년 9월 10일
답변: Arkadiy Turevskiy 2014년 9월 26일
I am trying to devise a Sugeno fuzzy system using the fuzzy GUI - for some reason when I add more than one output variable I get errors:
Error using length
Too many input arguments.
Error in addvar (line 76)
for ct=1:length(out.output.mf)
Error in fuzzy (line 746)
fis=addvar(fis,varType,'',[0 1],'init');
Error while evaluating uimenu Callback
I'm using 2014a on a Mac running Mavericks. To note, I also have 2013a installed on a MacBook and tried adding the same input and output variables and I get them same error messages.
If you add more than one output variable, then try and add an input variable the above messages are then displayed within the command prompt.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2014년 9월 10일
What does out.output.mf return? Put a breakpoint at the line
for ct=1:length(out.output.mf)
and run your code. When the debugger pauses at this line, in the Command Window type
out.output.mf
What do you see? The error message is suggesting that too many input parameters are being passed to the function length so check to see what is being passed to this function.

댓글을 달려면 로그인하십시오.

답변 (1개)

Arkadiy Turevskiy
Arkadiy Turevskiy 2014년 9월 26일
This is a bug that is to be fixed in a future release. As a workaround, add the second input first and the second output afterwards.

카테고리

Help CenterFile Exchange에서 Fuzzy Logic Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by