Reshaping matrix

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

Antworten (1)

Andrei Bobrov
Andrei Bobrov am 7 Feb. 2012

0 Stimmen

out = reshape(A.',1,[])
please read reshape

Kategorien

Mehr zu Matrices and Arrays finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 7 Feb. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by