Question: Write a MATLAB code using for loops and if statements to automatically find all negative numbers in A and replace them with zeros. Below is
Write a MATLAB code using for loops and if statements to automatically find all negative numbers in A and replace them with zeros.

Below is a screenshot of my MATLAB script code and command window result, but the loop didn't work.

1 24 32-1 245 21 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
