Replicating rows/columns within a matrix, kron function

3 次查看(过去 30 天)
I would like to replicate every row within a matrix a multiple of times. I tried using the kron function but I can't seem to get it to replicate the rows more than twice. As an example, I would like to go from: [3 4; 5 6] to [3 4; 3 4; 3 4; 5 6; 5 6; 5 6]
Any help would be greatly appreciated.
Thanks!

采纳的回答

Sean de Wolski
Sean de Wolski 2012-1-27
kron([3 4; 5 6],ones(3,1))

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Networks 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by