フィルターのクリア

matrix reshaping

4 ビュー (過去 30 日間)
athpapa -
athpapa - 2011 年 11 月 17 日
Does someone know how to reshape an array for example: A=[1 5; 2 4; 5 6] to an array B=(1,6) to be like this: B=[1 5 2 4 5 6];
Thank you...

採用された回答

bym
bym 2011 年 11 月 17 日
reshape(A',1,[])

その他の回答 (2 件)

Honglei Chen
Honglei Chen 2011 年 11 月 17 日
You can try
B = A.';
B = B(:).';

athpapa -
athpapa - 2011 年 11 月 17 日
thank you very much!

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by