repeat elements ('a','b') where 'a' has to repeat 157 times and 'b' has to repeat 173 times, sequentially?

2 visualizaciones (últimos 30 días)
157 values of 'a' then 173 values of 'b'

Respuesta aceptada

Raj
Raj el 3 de Feb. de 2020
Editada: Raj el 3 de Feb. de 2020
What is the exact issue here? Your 'tags' themselves are answers to your question. Use repelem and repmat to get what you want depending on whether a and b are matrices or elements.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by