How can I create a matrix of N columns by using just one vector.
Ältere Kommentare anzeigen
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!
Antworten (1)
Theo
am 23 Apr. 2015
vec= [5 8 7 9 8 4 7]';
vec_repeat=repmat(vec,1,1000);
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!