How do I repeat a column vector to make into one longer column vector?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Georgina Hammond
le 12 Fév 2019
Commenté : Georgina Hammond
le 12 Fév 2019
I have a column vector that has 24 values that I want to repeat 30 times into a column vector that has 720 values. How do I do this?
0 commentaires
Réponse acceptée
madhan ravi
le 12 Fév 2019
repmat(yourvector,30,1)
%or
repelem(yourvector,30,1)
% choose which suits you
Plus de réponses (1)
Voir également
Catégories
En savoir plus sur NaNs 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!