title: How to truncate matrix using NumPy (Python)
body: <p>just a quick question, if I have a matrix has n rows and m columns, how can I cut off the 4 sides of the matrix and return a new matrix? (the new matrix would have n-2 rows m-2 columns).</p>
  
  <p>Thanks in advance</p>