take three matrices into a single matrix

i have three matrix each of size 1*100 how can i take it to a single matrix of 3*100

 採用された回答

jonas
jonas 2018 年 7 月 31 日
編集済み: jonas 2018 年 7 月 31 日

0 投票

A=[a1;a2;a3]
a1 through a3 are single line vectors

その他の回答 (1 件)

Alex Fratila
Alex Fratila 2018 年 7 月 31 日

0 投票

Let's say your matrices are named a, b, and c. Then, you can concatenate them like this:
newMatrix = [a ; b ; c];
The semicolon stacks your matrices on top of each other (vertical concatenation). Here is a page with more info!

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2018 年 7 月 31 日

編集済み:

2018 年 7 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by