If n = 7, your program should return a vector y, where y = [1 2 3 4 5 6 7].
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers140
Suggested Problems
-
16201 Solvers
-
Find the longest sequence of 1's in a binary sequence.
6800 Solvers
-
6716 Solvers
-
Flip the vector from right to left
11141 Solvers
-
Sum of elements of a vector (★★★)
86 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!