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 comments
Loading...
Problem Recent Solvers112
Suggested Problems
-
Find the sum of the elements in the "second" diagonal
1204 Solvers
-
Getting the indices from a vector
11855 Solvers
-
07 - Common functions and indexing 3
427 Solvers
-
342 Solvers
-
Replicate elements in vectors (★★★)
61 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!