
RTT=0.050;
C=10; 
WI=100;

%x=0.001:0.001:1;

%for n=1:5:101
%for ind=0:1

p=zeros(1000,1);
fid=fopen('model-rl.txt','w');
 for N=1:1:1000
  %y(N,1)=eqtcp(RTT,N,C,1,WI);
  y1(N,1)=eqtcp2(RTT,N,C,1,WI);
  y2(N,1)=eqtcp2(RTT,N,C,100,WI);
  y3(N,1)=eqtcp2(RTT,N,C,50,WI);
  y4(N,1)=eqtcp1(RTT,N,C,1,2);
  fprintf(fid,'%d %f %f %f %f \n', N, y1(N,1), y2(N,1), y3(N,1), y4(N,1));
 end
fclose (fid);


% hold on
% xlabel ('Ploss', 'FontSize', 22);
% ylabel ('Number of packets sent', 'FontSize', 22);
% semilogy(x,y1)
% hold on
% semilogy(x,y2)
% hold on
% semilogy(x,y3)
%     print -dps fig.ps;
%end
%end
