Replace each negative number in matrix m1 with zero the


For each task listed, write a single MATLAB statement that will accomplish the stated goal. HINT: These use the logical conditions used with if statements, not the if statements themselves.

(a) Replace each negative number in matrix M1 with zero. The matrix M1 is already defined.

(b) Given that a scalar value N is already defined, determine the sum of all elements in vector V1 (V1 is also already defined) that are greater than N.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Replace each negative number in matrix m1 with zero the
Reference No:- TGS02944848

Expected delivery within 24 Hours