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

2 vues (au cours des 30 derniers jours)
157 values of 'a' then 173 values of 'b'

Réponse acceptée

Raj
Raj le 3 Fév 2020
Modifié(e) : Raj le 3 Fév 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.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by