Problem 42933. Vector with a repeated entry
Create a row vector of length n, filled with 4's. For example, if n = 3,
output = [4 4 4]
Solution Stats
Problem Comments
-
3 Comments
Jan Orwat
on 27 Aug 2016
please fix the description
Jihye Sofia Seo
on 9 Feb 2017
Filled with "5" not "4".
Christian Schröder
on 20 Oct 2022
Test suite and description are incompatible.
Solution Comments
Show commentsProblem Recent Solvers107
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1970 Solvers
-
Find the maximum number of decimal places in a set of numbers
3350 Solvers
-
422 Solvers
-
Write a code that will follow the equation y = x * (x + x) * x.
355 Solvers
-
Given a square and a circle, please decide whether the square covers more area.
1683 Solvers
More from this Author11
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!