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

1 Ansicht (letzte 30 Tage)
157 values of 'a' then 173 values of 'b'

Akzeptierte Antwort

Raj
Raj am 3 Feb. 2020
Bearbeitet: Raj am 3 Feb. 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.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by