09-01-2014 08:11 AM
really it is odd here, when I make code 1, what I find image 1, but when I make code 2, here what I find image 2.
somebody can say to me why?
image 1
image 2
x1 = (0:0.1:20)';
y = sin(2*x1)./exp(x1/5);
trnData = [x1 y];
numMFs = 5;
mfType = 'gbellmf';
epoch_n = 20;
in_fis = genfis1(trnData,numMFs,mfType);
out_fis = anfis(trnData,in_fis,20);
aa = evalfis(x1 ,out_fis);
09-01-2014 09:52 AM