Question: Please answer all!!! Part 1 is in Matlab and part 2 is in C++ code, thank you! Part 1: Matlab Write a MATLAB function that
Part 1: Matlab Write a MATLAB function that output 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 function as "homework6". Examples Matrix = [1 2 3; 4 5 6] Output-4 Compare-Value-2 Output-homework6(Matrix, Compare_Value); Matrix [1 231;4568 Compare_Value-2 Output 5 Output homework6(Matrix, Compare_Value); Part 2: C++ -Program a 3x3 matrix in C++, but have the user input/store the values (use integers (whole numbers)) in each of the 9 cells of the matrix when using the program -After the user inputs all 9 values into the cells of the matrix, the program then asks you which cell (row & column) you would like to look up. You'll need to input row then followed by a column to select an individual cell. The output should be the value stored in the cell The program then asks for another cell to look up
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
