Generate a vector like [5,4,4,3,3,3,2,2,2,2,1,1,1,1,1]
1 view (last 30 days)
Show older comments
Izan Segarra on 19 Feb 2019
Commented: Guillaume on 20 Feb 2019
How can I generate a vector like [5,4,4,3,3,3,2,2,2,2,1,1,1,1,1] without a loop?
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!