The universal method to build matrices from a couple of (matching) submatrices is concatenate. Its syntax is:
concatenate((a1, a2, ...), axis = 0)
This command stacks the submatrices vertically (on top of each other) when axis=0 is specified. With the argument axis=1, they are stacked horizontally, and this generalizes according to arrays with more dimensions. This function is called by several convenient functions, as follows:
- hstack: Used to stack arrays horizontally
- vstack: Used to stack arrays vertically
- columnstack: Used to stack vectors in columns