From vector to matrix

조회 수: 8 (최근 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