how to repeat specific rows?

1 回表示 (過去 30 日間)
andrew
andrew 2014 年 3 月 4 日
回答済み: Jos (10584) 2014 年 3 月 4 日
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 日
Something like this?
C = {'hello' ; rand(2,3) ; 1:5, 6}
ix = [1 1 2 3 3 3 4]
C = C(ix)

カテゴリ

Help Center および File ExchangeMultidimensional Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by