Question: This activity uses a 3rd party app Though your may be recorded aretesh may be required to update the banner to the left. activity Deleting
This activity uses a 3rd party app Though your may be recorded aretesh may be required to update the banner to the left. activity Deleting rows and columns using the colon operator. Assign newMatrixA with origMatri then remove row delRow and column delCol from newMatrixA. Assign deletedElems with the deleted row and column values. Ex lforigMatrixA ist 1. 3, 2:4.9.5:6, 7, 8:1, delRow is 1, and delcolis 2, then newMatrix Ais I4, 5:6, 8:1. and deletedElems is11: 3: 2:9; 7:1. 1 3 2 delRow 4 5 deleted Elems 2 newMatrixA origMatrixA 4 9 5 6 8 6 7 8 Hl save C Reset MATLAB Documentation Your Solution 1 function newMatrixA, deletedElems 1 DeleteRowcolumn origMatrixA, delRow, del col 2 DeleteRowColumn: Delete the row and column specified by delRow 3 and del Col from input matrixA and returns the modified matrix and 4 the deleted elements as a column array. Inputs origMatrixA input matrix deuRow row to delete
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
