Question: Write an m-file (function) called det10.m that inputs a square matrix and has the following features. (a) The function includes a check to verify that

Write an m-file (function) called det10.m that inputs a square matrix and has the following features. (a) The function includes a check to verify that the inputted matrix is actually square. (b) The function outputs 1 is the determinant of the matrix is 10, and 0 otherwise. (c) The function provides an appropriate help message. Write an m-file called distanceCalculator.m that inputs two vectors and has the following features. (a) The function will check that the vectors are of the same dimension. (b) The function will output the norm of the difference between the two vectors (this the distance between the heads of the vectors). (c) The function will provide an appropriate help message. (d) Test your function on: i. x = [2, -2]^T, y = -1, 2]^T ii. x = [1, 4]^T y = [-2, 1, 0]^T iii. x = [7, 7, 8]^T y = [-5, -9, -13]^T
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
