Advertisement
MagnusArias

PSI | zad 1

Mar 8th, 2017
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.25 KB | None | 0 0
  1. N = 8;
  2. miasta = zeros(N,3);
  3.  
  4. for i=1:N
  5.     miasta(i,1) = i;
  6.     miasta(i,2) = 10*rand(1);
  7.     miasta(i,3) = 10*rand(1);
  8. end
  9.  
  10. scatter(miasta(:,2), miasta(:,3));
  11.  
  12. for j=1:N
  13.     text(miasta(j,2)+0.15, miasta(j,3)+0.15, num2str(miasta(j,1)));
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement