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.

 채택된 답변

Oleg Komarov
Oleg Komarov 2012년 5월 27일

1 개 추천

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

dpr
2012년 5월 27일

Community Treasure Hunt

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

Start Hunting!

Translated by