Error "Undefined function 'genfis1' for input arguments of type 'double'.

I try to run a code but i get this error "Undefined function 'genfis1' for input arguments of type 'double'. Error in oilForcasting (line 87) fismat=genfis1(train_data, mf_no, mf_type) %create of initial fis " What is wrong???? Is there anyone that i can send the code and the data to make is run?
Thank you all in advance.

1 件のコメント

Geoff Hayes
Geoff Hayes 2018 年 6 月 5 日
Manolis - do you have the Fuzzy Logic Toolbox? In the command window, type
which genfis1
to see if MATLAB can find the function. If it can, then which version of MATLAB are you using?

サインインしてコメントする。

回答 (2 件)

Walter Roberson
Walter Roberson 2018 年 6 月 5 日

0 投票

You need the Fuzzy Logic Toolbox https://www.mathworks.com/help/fuzzy/genfis1.html
Note: genfis1 will probably be removed in R2018b.
MANOLIS CHERETAKIS
MANOLIS CHERETAKIS 2018 年 6 月 5 日

0 投票

Thank you both for the instant reply. I typed that but the following came out:
>> which genfis1 'genfis1' not found.
>> which genfis 'genfis' not found.
I am using the "MATLAB R2014a" version.

1 件のコメント

Walter Roberson
Walter Roberson 2018 年 6 月 5 日
genfis1 was part of the Fuzzy Logic toolbox from some time before R2006a, so if you have the Fuzzy Logic Toolbox installed you should have the function. Perhaps you do not have that toolbox installed. Command
ver('fuzzy')
If you have the toolbox installed then it should list the toolbox.

サインインしてコメントする。

カテゴリ

ヘルプ センター および File ExchangeFuzzy Logic Toolbox についてさらに検索

タグ

質問済み:

2018 年 6 月 5 日

コメント済み:

2018 年 6 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by