Problem 1089. Create a random vector of integers with given sum
47.02% Correct | 52.98% Incorrect
Last Solution submitted on Mar 20, 2023
Pauli Huusari on 9 Dec 2019
This should be quite straightforward but at 2a.m. my brains are not working 100%. ;)
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 Solvers45
Swap the first and last columns
Extract leading non-zero digit
Convert hex color specification to MATLAB RGB
MATCH THE STRINGS (2 CHAR) very easy
More from this Author31
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!