Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. x = rand(1 100)
  2.  
  3. A = rand(1,100); % uniform distributed between 0 and 1
  4. B = A>=0.2; % Makes the lowest 20% values 0, the rest 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement