Creating a matrix with repeating the same numbers.
1 次查看(过去 30 天)
显示 更早的评论
Hi, i am back with one more question.
If 't' is any variable, let's keep t=10
i need a matrix
A=[1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11]
if t=11, i need
A=[1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12]
Any help will be appreciated. this is because of my project.
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!