I have some large matrices, which I need to remove the first row and first column (both of which are full of zeroes). In this sense I need the inverse of "ArrayPad".
For example, consider the matrix:
A = {{0, 0, 0, 0}, {0, 1, 2, 3}, {0, 4, 5, 6} , {0, 7, 8, 9}}
A // MatrixForm
I would like an operation to reduce it to
Anew = {{1, 2, 3}, {4, 5, 6} , {7, 8, 9}}
Anew // MatrixForm
I need general recipe for such operation for to go from (N+1) by (N+1) matrix to N by N matrix by removing the first column of zeroes and first row of zeroes.
Any help appreciated.
f=Drop[#,1]&drops the first element of a list.f=Drop[#,-1]&drops the last.f[A]removes rows.f/@Aremoves columns. – mikado Sep 03 '16 at 11:31