% Reads a data file with 4 columns

format long
fid 	= fopen ('ohare_schedule','rt');
y 		= fscanf(fid,'%g',[4,inf]);
y		= y';

[nrow,ncol] = size(y);	

hour	 	= y(:,1);
arrivals 	= y(:,2);	
departures	= y(:,3);
total_ops	= y(:,4);

fid = fopen ('output.txt','a');
fprintf(fid, '%4.0f %4.0f %4.0f %4.0f\n',y');
status = fclose(fid);

	
