Problem 1089. Create a random vector of integers with given sum
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Pauli Huusari
on 9 Dec 2019
This should be quite straightforward but at 2a.m. my brains are not working 100%. ;)
-
1 Comment
J.R.! Menzinger
on 5 Dec 2012
I has exactly the same idea!!
but on the second line I used directly the logical indexing... ;-)
Problem Recent Solvers42
Suggested Problems
-
Which values occur exactly three times?
4404 Solvers
-
Remove the polynomials that have positive real elements of their roots.
1073 Solvers
-
Make an awesome ramp for a tiny motorcycle stuntman
417 Solvers
-
Who is the smartest MATLAB programmer?
670 Solvers
-
480 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!