Question: 2. Write a script that takes a random array (with rows and columns) from the user and squares all negative entries of the matrix, resulting
2. Write a script that takes a random array (with rows and columns) from the user and squares all negative entries of the matrix, resulting in a matrix with all positive values. Use randi ([-20,20],3,5) to test your script. Display both the original matrix and the modified matrix. You may consider looking up the size function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
