Borrar filtros
Borrar filtros

how to repeat specific rows?

2 visualizaciones (últimos 30 días)
andrew
andrew el 4 de Mzo. de 2014
Respondida: Jos (10584) el 4 de Mzo. de 2014
I have a cell array and would like to repeat certain rows. how do I do this?

Respuestas (1)

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

Categorías

Más información sobre Multidimensional Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by