From vector to matrix

3 visualizzazioni (ultimi 30 giorni)
dpr
dpr il 27 Mag 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.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by