You can edit matrices using any of the table manipulation functions and methods described elsewhere in this chapter. There are two functions, however, that are very useful in matrix math:
REGION copies a rectangular region out of a matrix, padding it with zeros as needed. The output of REGION is a matrix.
TRANSPOSE swaps the rows and columns of its input matrix. Its output is a matrix.