close all;

%the city traffic
%
fid=fopen("file_05_10a.txt","r");
X=[];
s=fgets(fid);
while(s!=(-1))
X=[X,str2num(s)];
s=fgets(fid);
end
fclose(fid);
%the highway traffic
fid=fopen("file_05_10b.txt","r");
Y=[];
s=fgets(fid);
while(s!=(-1))
Y=[Y,str2num(s)];
s=fgets(fid);
end
fclose(fid);

fid=fopen("file_05_10c.txt","r");
U=[];
s=fgets(fid);
while(s!=(-1))
U=[U,str2num(s)];
s=fgets(fid);
end
fclose(fid);

fid=fopen("file_05_10d.txt","r");
V=[];
s=fgets(fid);
while(s!=(-1))
V=[V,str2num(s)];
s=fgets(fid);
end
fclose(fid);

figure();
scatter (X,Y, 225, 'b','.');
xlabel("the city traffic");
ylabel("the highway traffic",'rotation',90);
title ("the city\highway traffic");

figure();
scatter (U,V, 225, 'b','.');
xlabel("the city traffic");
ylabel("the highway traffic",'rotation',90);
title ("the city\highway traffic");

