Use Python, please. You can use any Seaborn, Pandas, or Matplotlib if needed.
I need code that will allow me to extract the upper left quadrant from a matrix to form a mini matrix.
Since I will not know the future dimensions of other matrices, you should not hard code them.
The code should read the dimensions of the given matrix and split it into 4 by dividing the row and column size by 2.
If the columns can't be divided evenly, then shave off the first column. If the rows can't be divided evenly, then shave off the first row (i.e., the column/row values furthest from the center).
Will upvote. Thank you.