Advertisement
Guest User

Untitled

a guest
Mar 29th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. load X.mat
  2. lonlat = [];
  3. lonlat(:,1) = X(:, 1);
  4. lonlat(:,2) = X(:, 2);
  5. speed = X(:, 3);
  6.  
  7. figure
  8. plot(lonlat(:, 1), lonlat(:, 2), 'r', 'LineWidth', 2);
  9. % Put a begin and end marker
  10. line(lonlat(1, 1), lonlat(1, 2), 'Marker', 'o', ...
  11. 'Color', 'b', 'MarkerFaceColor', 'b', 'MarkerSize', 10);
  12. line(lonlat(end, 1), lonlat(end, 2), 'Marker', 's', ...
  13. 'Color', 'b', 'MarkerFaceColor', 'b', 'MarkerSize', 10);
  14. hold on
  15. plot3(lonlat(:,1),lonlat(:,2), speed);
  16. plot_google_map('maptype', 'roadmap');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement