from a=[1 2 3 4] to b=[1 1 2 2 3 3 4 4]

8 visualizaciones (últimos 30 días)
Davide Cerra
Davide Cerra el 10 de Nov. de 2018
Respondida: Bruno Luong el 10 de Nov. de 2018
code: from a=[1 2 3 4] to b=[1 1 2 2 3 3 4 4]

Respuesta aceptada

Bruno Luong
Bruno Luong el 10 de Nov. de 2018
b = repelem(a,2)

Más respuestas (0)

Categorías

Más información sobre Matrices and 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