Unable to run genfis1 command

2 次查看(过去 30 天)
shaista
shaista 2014-1-14
评论: shaista 2014-1-14
when i execute this statement in command prompt: DATA={[43 0],[55 25],[67,75],[79,100]}; >> FIS = genfis1(DATA, [4], trimf, linear); it gives following error: ??? Undefined function or method 'min' for input arguments of type 'cell'.
Error in ==> genfis1 at 92 range = [min(data,[],1)' max(data,[],1)']; please help me

回答(1 个)

David Sanchez
David Sanchez 2014-1-14
genfis1 do not accept cell data ( the {} defines a cell ). Do it like this:
DATA=[[43 0],[55 25],[67,75],[79,100]];
FIS = genfis1(DATA,[4], 'trimf', 'linear');

类别

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