I am having trouble with the function genfis1. It keeps telling me there is an error in the code of genfis1 itself. I do have the fuzzy toolbox installed...
The error that is given:
Undefined function or variable 'in_n'.
Error in genfis1 (line62)
numMFs=numMFs*ones(1, in_n);
Can somebody tell me why this is happening?

댓글 수: 2

Which MATLAB release are you using?
If you
dbtype genfis1
then what shows up on line 58?
Jeroen Schoonderbeek
Jeroen Schoonderbeek 2018년 3월 16일
Matlab 2017b
In line 58 this shows up:
ein_n = size(data, 2) - 1;

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

 채택된 답변

Walter Roberson
Walter Roberson 2018년 3월 16일

0 개 추천

You appear to have accidentally edited your genfis1 file. In R2017b line 58 has
in_n = size(data, 2) - 1;
and you appear to have inserted an 'e' before that.

댓글 수: 1

Jeroen Schoonderbeek
Jeroen Schoonderbeek 2018년 3월 17일
Thank you so much! I would never have found this myself...

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

추가 답변 (0개)

카테고리

도움말 센터File 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