Question: Complete using MatLab. Please show code and output (command window). Problem 2: Write a code that asks for a matrix from the user. This code

Complete using MatLab. Please show code and output (command window). Problem 2: Write a code that asks for a matrix from the user. This code should replace the non-integer elements of the matrix with zero. It also should replace the negative integer elements with -1. (Hint: A number is integer when x-ceil(x) - 0, or x floor(x)-0). Apply you code to the following matrix: A [2.9 4 5.89 -10 0-2 7 -10.1 8.9; 16.2 -8.4 3 2.2-5]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
