how to repeat specific rows?
显示 更早的评论
I have a cell array and would like to repeat certain rows. how do I do this?
回答(1 个)
Jos (10584)
2014-3-4
Something like this?
C = {'hello' ; rand(2,3) ; 1:5, 6}
ix = [1 1 2 3 3 3 4]
C = C(ix)
类别
在 帮助中心 和 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!