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 =0; % FIXME
% Remove row delRow from newMatrixA
newMatrixA =0; % FIXME
% Append deletedElems with the column of newMatrixA to be deleted
deletedElems =0; % FIXME
% Remove column delCol from newMatrixA
newMatrixA =0; % FIXME
end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!