Problem 45444. Create a vector with n repeated values of a number x (★★)
If x=3 and n=7 then the vector y would be
y=[3 3 3 3 3 3 3]
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers111
Suggested Problems
-
Return the largest number that is adjacent to a zero
5415 Solvers
-
Find all elements less than 0 or greater than 10 and replace them with NaN
15632 Solvers
-
523 Solvers
-
4738 Solvers
-
127 Solvers
More from this Author52
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!