From vector to matrix

9 次查看(过去 30 天)
dpr
dpr 2012-5-27
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by