Going from 1 x n to n x n matrix

조회 수: 16 (최근 30일)
Gibliano
Gibliano 2012년 7월 25일
How doe I convert a matrix with 100 elements in a 1x100 matrix to a 100x100 matrix. Each row in the 1xn matrix will have the same values in rows 2, 3, 4, 5 etc to 100

채택된 답변

Oleg Komarov
Oleg Komarov 2012년 7월 25일
repmat(A,100,1)
where A is your vector.

추가 답변 (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