Suppose matrix A=[ 1,2 ; 3,4 ; 5,6]
Matrix B=[ 7 , 8 ]
whever I use C=[A,B] I receive this error message
Error using ==> horzcat
CAT arguments dimensions are not consistent.

 採用された回答

the cyclist
the cyclist 2020 年 5 月 11 日

0 投票

C = [A; B]

1 件のコメント

Shady Elsayed
Shady Elsayed 2020 年 5 月 11 日
Oops forgot about that, now it worked! Thanks very much

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Numeric Types についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by