Guest User

Untitled

a guest
Apr 20th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function [ ind, wartosc ] = sortowanie( roznica, liczba )
  2. %SORTOWANIE
  3.  
  4. min = 10000;
  5. ind = 10000;
  6.  
  7. for k = 1 : 10
  8. if(roznica(k) < min && roznica(k) > liczba)
  9. ind = k;
  10. wartosc = roznica(k);
  11. min = roznica(k);
  12. end
  13. end
  14.  
  15.  
  16.  
  17. end
Add Comment
Please, Sign In to add comment