Reshaping matrix

1 次查看(过去 30 天)
Muammar
Muammar 2012-2-7
Hi...
I want to ask how to reshape this matrix
A = [ 1 1 1 ; 2 2 2 ; 3 3 3] to be A = [1 1 1 2 2 2 3 3 3]
using index, because I will use around 40 x 40 matrix
Thank you, Muammar

回答(1 个)

Andrei Bobrov
Andrei Bobrov 2012-2-7
out = reshape(A.',1,[])
please read reshape

类别

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