I have two 3-by-3 matrices:
A= [ 1 2 3 1 1 1 0 1 1] B= [ 1 2 1 1 1 1 2 2 2]
How do I concatenate the
There are a few possibilities here. The easiest, and most common one:
concat = [A, B]
The following is considered more robust by some, (because one might, on accident, do concat = [A; B], which would concatenate them vertically):
concat = [A; B]
concat = horzcat(A, B)