Advertisement
Guest User

Untitled

a guest
Jun 9th, 2019
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Octave 0.65 KB | None | 0 0
  1. cities = [
  2.   -262 1240
  3.   -1219 1375
  4.   -623 1080
  5.  
  6.   1002 1624
  7.  
  8.   64 2309
  9.   -552 1967
  10.   757 4588
  11.  
  12.   970 1000
  13.   1666 742
  14.  
  15.   -1539 -873
  16.   -4139 -5062
  17.   -4751 -7025
  18.  
  19.   1650 750
  20.   1965 2257
  21.  
  22.   -2505 334
  23.   -2873 375
  24.   -3484 419
  25.  
  26.   -3223 1004
  27.   -6661 725
  28.   -7005 1092
  29.   -10191 726
  30. ]
  31.  
  32. portals = [
  33.   -313 949
  34.   -600 1546
  35.   880 1395
  36.  
  37.   -1875 450
  38.   -1763 -865
  39.   -6808 -6683
  40.  
  41.   -1819 521
  42.   -6962 970
  43.   -6447 618
  44. ]
  45.  
  46. scatter(cities(:,1),cities(:,2), [], 'b', 's', 'filled')
  47. hold on
  48. scatter(0, 0, [], 'g', 's', 'filled')
  49. scatter(portals(:,1),portals(:,2), [], 'r', 's', 'filled')
  50.  
  51.  
  52.  
  53. axis('equal', 'ij')
  54. grid on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement