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)
Jos (10584) 2014 年 3 月 4 日

0 投票

Something like this?
C = {'hello' ; rand(2,3) ; 1:5, 6}
ix = [1 1 2 3 3 3 4]
C = C(ix)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

質問済み:

2014 年 3 月 4 日

回答済み:

2014 年 3 月 4 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by