The command C = max(A,B) compares corresponding values in the Aand B matrices assuming they are the same size. The problem is thatMATLAB’s native version does not tell you from which matrix itfound the largest value. Write a new function (in MATLAB)[C,from_which] = max_new(A,B) that also output a matrix, the samesize as the inputs, with either 1’s or 2’s depending on from whichmatrix the larger value was found. Include a live script that testsyour solution.