Combining and Transposing 2-D Arrays
If A, B, C, and D are arrays,
- [A B] or [A , B] is an array formed by combining the columns of A and B with A on the left. A and B must have the same number of rows.
- [C ; D] is an array formed by stacking the rows of C above the rows of D. C and D must have the same number of columns.
If A is an array with m rows and n columns, A� (A quote-mark) is an array with n rows and m columns with A�(i,j) = A(j,i). The result is known as the transpose of A.