Question

a). B = matrixTranspose(A): a transpose function with input of an arbitrary matrix and output its transpose (Do NOT use the built-in function in MATLAB, but do the transpose by

element operation);Test your function with two test cases, where A=\left[\begin{array}{cccc} 9 & 4 & 3 & -6 \\ 2 & -1 & 6 & 5 \end{array}\right] A=[9,4,3,-6,2,-1,6,5] b). C = matrix Multiply(A, B): a function that returns the product of inputs matrix A and B (Do NOTuse MATLAB’s matrix multiplication, but perform an element by element multiplication). Remember to check the validity of the operation in the function by checking the dimensions of matrix A and B.Test your function by comparing results from your function with that from MATLAB’s built-in matrix multiplication using two test cases where: A=\left[\begin{array}{cccc} 9 & 4 & 3 & -6 \\ 2 & -1 & 6 & 5 \end{array}\right] ; B=\text { matrixTranspose(A): } A=[9,4,3,-6,2,-1,6,5] ; B=\text { matrixTranspose }(A) c). det = matrix Determinant(A): a function that calculates the determinant of a 2 by 2 or 3 by 3 matrix(Do NOT use MATLAB’s built-in determinant function). Remember to check the matrix size first and then use corresponding formula to calculate determinant of matrix A. Test your function by comparing results from your function with that from MATLAB’s built-in determinant function using two test cases where \mathbf{A}=\mathrm{D}^{*} \mathrm{E}, \text { and } D=\left[\begin{array}{cccc} 9 & 4 & 3 & -6 \\ 2 & -1 & 6 & 5 \end{array}\right] ; \mathrm{E}=\text { matrixTranspose(D) } \mathrm{A}=\mathrm{D} * \mathrm{E}, \text { and } D=\left[\begin{array}{cccc} 9 & 4 & 3 & -6 \\ 2 & -1 & 6 & 5 \\ 3 & 4 & 4 & 7 \end{array}\right] ; \mathrm{E}=\text { matrixTranspose(D) }

Question image 1Question image 2Question image 3Question image 4Question image 5Question image 6Question image 7Question image 8Question image 9