Reshaping matrix

1 vue (au cours des 30 derniers jours)
Muammar
Muammar le 7 Fév 2012
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

Réponses (1)

Andrei Bobrov
Andrei Bobrov le 7 Fév 2012
out = reshape(A.',1,[])
please read reshape

Catégories

En savoir plus sur Resizing and Reshaping Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by