How to get one vector from several matrices?

Hi; I have matrix and vector and I want to put them in one vector;
For example
A=[1,2;3,4]; B=[5,6];C=[7;8];
I want them in one vector
S=[1,2,3,4,5,6,7,8] Thanks in advance

 採用された回答

Stephen23
Stephen23 2016 年 1 月 1 日
編集済み: Stephen23 2016 年 1 月 1 日

0 投票

S = [reshape(A.',[],1);B(:);C(:)].';

その他の回答 (0 件)

カテゴリ

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

タグ

質問済み:

2016 年 1 月 1 日

編集済み:

2016 年 1 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by