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

11 vues (au cours des 30 derniers jours)

Réponses (1)

Image Analyst
Image Analyst le 27 Mai 2024
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.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by