anfis03.m
来自「屬於SUGENO模糊模型可以藉由類神經網路架構來替代」· M 代码 · 共 14 行
M
14 行
data=[0 0 0;0 1 1;1 0 1;1 1 0];
trndata=data;
numMFs=2;
mfType='gbellmf';
in_fis=genfis1(trndata,numMFs,mfType);
numepochs=30;
out_fis=anfis(trndata,in_fis,numepochs);
[x,mf]=plotmf(out_fis,'input',1);
subplot(2,1,1),plot(x,mf);
xlabel('input1');
[x,mf]=plotmf(out_fis,'input',2);
subplot(2,1,2),plot(x,mf);
xlabel('input2');
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?