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 件のコメント

Walter Roberson
Walter Roberson 2018 年 3 月 16 日
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 ExchangeFuzzy Logic in Simulink についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by