hi everyone..
im new to matlab. im developing a multidecision support system using fuzzy logic with 4 inputs and one output . i want to convert .fis file to .m file so i have written code as
function out = myfuztest2(x,y,z,w)
f=readfis('NEW3.fis');
out=evalfis ([x y z w],f);
end
but im getting error as not enough input arguments..
any kind of help will be appreciated.

3 件のコメント

Bob Thompson
Bob Thompson 2018 年 3 月 6 日
Which line is matlab giving you the error for? The "not enough input arguments" error is fairly self explanatory on a basic level, but a lot of times I find I have empty variables for my inputs which gives me this error.
Walter Roberson
Walter Roberson 2018 年 3 月 6 日
How are you invoking this function?
srinija kammari
srinija kammari 2018 年 3 月 8 日
i tried using command line >>myfuztest2

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

 採用された回答

Birdman
Birdman 2018 年 3 月 8 日
編集済み: Birdman 2018 年 3 月 8 日

0 投票

i tried using command line >>myfuztest2
You need to pass your predefined input arguments in order to make the function work. For instance, depending on what you are going to calculate:
myfuztest2(1,1,1,1)
You need to call it as above. Replace the ones with your proper input arguments. Mine was just for example. Otherwise, you will get error. For function basics, see

1 件のコメント

srinija kammari
srinija kammari 2018 年 3 月 8 日
thanks birdman i got it..

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

その他の回答 (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