clear clc clf tt = dlmread('ttimes.txt'); for index = 1:length(tt) ix = tt(index,1); iy = tt(index,2); xx(ix, iy) = tt(index, 4); yy(ix, iy) = tt(index, 5); zz(ix, iy) = tt(index, 6); end surf(xx, yy, zz) shading flat alpha(.7) hold on rawStreet = dlmread('atlanta.txt'); colors = 'rgboyk'; for index = 1:length(rawStreet) x(1) = rawStreet(index,3); y(1) = rawStreet(index,4); x(2) = rawStreet(index,5); y(2) = rawStreet(index,6); c = rawStreet(index,7); if c > 6 c = 6; elseif c < 1 c = 1; end plot(x, y, colors(c)) end ylabel('Latitude') xlabel('Longitude') zlabel('Travel Time (Min)')