how to repeat specific rows?

1 vue (au cours des 30 derniers jours)
andrew
andrew le 4 Mar 2014
I have a cell array and would like to repeat certain rows. how do I do this?

Réponses (1)

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

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by