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 Solvers115
Suggested Problems
-
We love vectorized solutions. Problem 1 : remove the row average.
897 Solvers
-
382 Solvers
-
176 Solvers
-
Sum the squares of numbers from 1 to n
261 Solvers
-
Sum of terms in a series 1 (★★★)
57 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!