From vector to matrix

2 views (last 30 days)
dpr
dpr on 27 May 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.

Accepted Answer

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

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!