combine matrix in matlab

2 ビュー (過去 30 日間)
Chun Yin Lui
Chun Yin Lui 2021 年 2 月 23 日
コメント済み: Chun Yin Lui 2021 年 2 月 23 日
I need to combine the two matrices a and b to yield c
A = [1,2,3] & B = [4,5,6]
C = [1,4,2,5,3,6]

採用された回答

Fangjun Jiang
Fangjun Jiang 2021 年 2 月 23 日
reshape([A;B],1,[])
  1 件のコメント
Chun Yin Lui
Chun Yin Lui 2021 年 2 月 23 日
This works, thank you for help

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by