matrix manipulation

1 次查看(过去 30 天)
Nicolas
Nicolas 2011-12-3
Hi,
I would like to transform a matrix (5005*3) into a (165*91). Moving packets of lines (for example (92:182,1:3) and (183:273,1:3)..) to form new columns.
I tried to create a loop but it doesn't work
Thanks for your help

采纳的回答

Sean de Wolski
Sean de Wolski 2011-12-3
B = reshape(A',165,91); %pull from rows
or
B = reshape(A,165,91); %pull from columns
Depending on how you want to pull from A. It's not clear from your example

更多回答(0 个)

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by