Adding elements to a 2D array

84 Ansichten (letzte 30 Tage)
Shady Elsayed
Shady Elsayed am 11 Mai 2020
Kommentiert: Shady Elsayed am 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.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by