Extracting SubmatricesTake is useful to extract a submatrix. Extracting submatrices. In[1]:=  |
Out[2]//MatrixForm=
|
This extracts the submatrix from to . In[3]:=  |
Out[3]//MatrixForm=
|
This extracts the submatrix of rows 1 to 3. In[4]:=  |
Out[4]//MatrixForm=
|
This extracts the submatrix of columns 2 to 4. In[5]:=  |
Out[5]//MatrixForm=
|
You can use negative indices to count from the end. This returns the matrix with the first and last columns dropped. In[6]:=  |
Out[6]//MatrixForm=
|
|