Problem 1090. Create a random logical vector of N elements of which M are true.
Solution Stats
Problem Comments
-
1 Comment
Massimo Zanetti
on 8 Oct 2016
This Test suite sucks.. it does not let pass a right solution.........
Solution Comments
-
1 Comment
Daniel Pereira
on 2 Feb 2017
The test suite does not check that y has n elements.
Problem Recent Solvers89
Suggested Problems
-
167 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
317 Solvers
-
600 Solvers
-
Penny flipping - calculate winning probability (easy)
158 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
717 Solvers
More from this Author31
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!