From vector to matrix

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.

 Respuesta aceptada

Oleg Komarov
Oleg Komarov el 27 de Mayo de 2012

1 voto

If A is your vector, then:
repmat(A,1,100)

Más respuestas (0)

Categorías

Etiquetas

Preguntada:

dpr
el 27 de Mayo de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by