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

figure(1);
plot(error);
title('RMSE curve form Temperature and Moisture (fcm1.m) ');
ylabel('RMSE');
xlabel('N');

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