How can I create a matrix of N columns formed by just one vector?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Tommaso Pellegrino
le 23 Avr 2015
Modifié(e) : Ahmet Cecen
le 23 Avr 2015
Hi! If I have a vector like (5 8 7 9 8 4 7)' how can I create a matrix of N (for example 1000) columns formed by this vector? Thank you!
0 commentaires
Réponse acceptée
Ahmet Cecen
le 23 Avr 2015
Modifié(e) : Ahmet Cecen
le 23 Avr 2015
for a row vector concatenated vertically:
A=repmat(vector,[1000 1]);
for a column vector concatenated horizontally:
A=repmat(vector,[1 1000]);
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!