Write a MATLAB function that outputs number of values in a matrix that’s greater than a compare value. The function must able to take in an arbitrary size matrix.
Name your script/program as “Quiz 2”.
Examples :
Matrix = [1 2 3; 4 5 6] Compare_Value = 2
Output = 4
Matrix = [1 2 3 1; 4 5 6 8] Compare_Value = 2
Output = 5
OUTPUT
Get Answers For Free
Most questions answered within 1 hours.