Going from 1 x n to n x n matrix

14 次查看(过去 30 天)
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 中查找有关 Resizing and Reshaping Matrices 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by