CMatrix:Remove
The Remove method removes the CMatrix member at row n, column m.
value = CMatrix:Remove( n, m ) |
This method removes the member at row n, column m. If removing the element leaves a row with zero columns, then the empty row is also removed.
The type of the returned value corresponds to whatever type was saved into the CMatrix at the specified index. This may be a number, string, or other quantity.
The following script fragment removes the member at index [10][8]:
|
-- create a CMatrix object |
|
-- set member [5][4] |
|
-- set member [12][40] |
|
-- set member [20][18] |
|
-- set member [10][120] |
|
-- result: N = 4 |
|
-- remove member [12][40] |
|
-- result: N = 3, v='s2' |