Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = rand(1 100)
- A = rand(1,100); % uniform distributed between 0 and 1
- B = A>=0.2; % Makes the lowest 20% values 0, the rest 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement