load fcmdata2
trn_data=fcmdata2(1:100,:);
in_fismat=genfis1(trn_data);
ss=0.5;
ss_dec=0.9;
ss_inc=1.1;
epoch=300;
[fismat,error,stepsize]=...
	anfis(trn_data,in_fismat,[epoch nan ss ss_dec ss_inc]);

figure(1);
plot([error]);
title('RSME curvefrom temperature,moisture and their diff. ');
ylabel('RMSE');
xlabel('N');

y=[trn_data(:,5)];
yy=evalfis(trn_data(:,1:4),fismat);
figure(2);
plot([y yy]);
title('Actual and Predicted Rainfall. (fcm2.m)');
ylabel('Rainfall');
xlabel('N');