SubmatrixByRemoval
Obtains a submatrix by removing a particular row and column.
Syntax
-
SubmatrixByRemoval(A, i, j)-
Ais a matrix -
iandjare positive integers
-
Description
If A is a matrix, i a valid row index of A, and j a valid column index of A, then SubmatrixByRemoval(A, i, j) returns the submatrix obtained from A by removing the ith row and the jth column from it.
Examples
A ≔ ❨❨4, 1, 2, 3❩, ❨6, 1, 2, 3❩, ❨7, 6, 5, 0❩, ❨1, 2, 1, 6❩❩
⎛4 1 2 3⎞ ⎜6 1 2 3⎟ ⎜7 6 5 0⎟ ⎝1 2 1 6⎠
SubmatrixByRemoval(A, 3, 3)
⎛4 1 3⎞ ⎜6 1 3⎟ ⎝1 2 6⎠