load fcmdata2
trn_data=fcmdata2(1:100,:);
trn_data(:,5)=fcmdata2(2:101,5);
chk_data=[fcmdata2(101:200,1:4),fcmdata2(102:201,5)];
in_fismat=genfis1(trn_data);
ss=0.5;
ss_dec=0.9;
ss_inc=1.1;
epoch=300;
[fismat1,error1,stepsize,fismat2,error2]=...
	anfis(trn_data,in_fismat,[epoch nan ss ss_dec ss_inc],...
	[1 1 1 1],chk_data);

figure(1);
plot([error1,error2]);
title('RMSE curve from temperature ,moisture and their differances one day ago (fcm3.m)');
ylabel('RMSE');
xlabel('N');

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