How can I define a fitness function for GA optimization from following ANFIS code?

1 次查看(过去 30 天)
load fuzex1trnData.dat
x = fuzex1trnData(:,1);
opt = anfisOptions('InitialFIS',4,'EpochNumber',40);
fis = anfis(fuzex1trnData,opt);
figure
anfisOutput = evalfis(x,fis);
plot(x,fuzex1trnData(:,2),'*r',x,anfisOutput,'.b')
legend('Training Data','ANFIS Output','Location','NorthWest'

回答(0 个)

类别

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