How to get rid of the error: Error using horzcat. Dimensions of matrices being concatenated are not consistent

조회 수: 8 (최근 30일)

답변 (1개)

Image Analyst
Image Analyst 2024년 5월 27일
In general, this error means that the matrix you're trying to concatenate on the right hand side of your existing matrix does not have the same number of rows as your existing matrix.
C = [A, B]; % A and B MUST have the same number of rows or you get an error.

카테고리

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