From vector to matrix

9 Ansichten (letzte 30 Tage)
dpr
dpr am 27 Mai 2012
Hi,
I have a vector of size (1,60) and I want to convert it into a matrix of size (100,60), in wich every row is my initial vector. Can anyone tell me how to do it?
thanks.

Akzeptierte Antwort

Oleg Komarov
Oleg Komarov am 27 Mai 2012
If A is your vector, then:
repmat(A,1,100)

Weitere Antworten (0)

Kategorien

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

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by