Adding elements to a 2D array

76 vues (au cours des 30 derniers jours)
Shady Elsayed
Shady Elsayed le 11 Mai 2020
Commenté : Shady Elsayed le 11 Mai 2020
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.

Réponse acceptée

the cyclist
the cyclist le 11 Mai 2020
  1 commentaire
Shady Elsayed
Shady Elsayed le 11 Mai 2020
Oops forgot about that, now it worked! Thanks very much

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

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

Community Treasure Hunt

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

Start Hunting!

Translated by