Creating a vector with duplicate points after point 1
显示 更早的评论
Hello, thanks for reading this.
I want to create a vector which the first point is 1, and then each point after is a duplicate, as in:
1 2 2 3 3 4 4 5 5 etc
There is probably a easier way to do this than what I imagine; what would you recommend?
Thanks
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Variant Systems 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!