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에서 Creating and Concatenating Matrices에 대해 자세히 알아보기

태그

질문:

2020년 5월 11일

댓글:

2020년 5월 11일

Community Treasure Hunt

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

Start Hunting!

Translated by