Adding elements to a 2D array

조회 수: 92 (최근 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일
C = [A; B]
  댓글 수: 1
Shady Elsayed
Shady Elsayed 2020년 5월 11일
Oops forgot about that, now it worked! Thanks very much

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by