Question: function [ newMatrixA, deletedElems ] = DeleteRowColumn ( origMatrixA, delRow, delCol ) % DeleteRowColumn: Delete the row and column specified by delRow % and delCol
function newMatrixA, deletedElems DeleteRowColumn origMatrixA, delRow, delCol
DeleteRowColumn: Delete the row and column specified by delRow
and delCol from input matrixA and returns the modified matrix and
the deleted elements as a column array.
Inputs: origMatrixA input matrix
delRow row to delete
delCol column to delete
Outputs: newMatrixA input matrix with specified row and column deleted
deletedElems deleted elements from input matrix
returned as a column array
Assign newMatrixA with origMatrixA
newMatrixA origMatrixA;
Assign deletedElems with row of newMatrixA to be deleted
Hint: Use the transpose operator to convert a row to a column
deletedElems ; FIXME
Remove row delRow from newMatrixA
newMatrixA ; FIXME
Append deletedElems with the column of newMatrixA to be deleted
deletedElems ; FIXME
Remove column delCol from newMatrixA
newMatrixA ; FIXME
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
