Split large matrix in smaller matrices?

3 次查看(过去 30 天)
Hi, I have a matrix A = 169 x 606 and I want to convert each row into a 13 x 13 matrix? I know this is probably a simple operation, but I can't seem to get it to work. If anyone has any ideas it would be very much appreciated!
Thanks.

采纳的回答

Andrei Bobrov
Andrei Bobrov 2012-6-15
eg ( A - your matrix with size (169 x 4),)
for each column:
A = randi(3000,169,4);
out = reshape(A,13,13,[])

更多回答(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