Adding elements to a 2D array

84 ビュー (過去 30 日間)
Shady Elsayed
Shady Elsayed 2020 年 5 月 11 日
コメント済み: Shady Elsayed 2020 年 5 月 11 日
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 日
  1 件のコメント
Shady Elsayed
Shady Elsayed 2020 年 5 月 11 日
Oops forgot about that, now it worked! Thanks very much

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by