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

回答 (1 件)

Andrei Bobrov
Andrei Bobrov 2012 年 2 月 7 日

0 投票

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

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

質問済み:

2012 年 2 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by