Question: Problem Summary Write a MATLAB nested function, MyTransposeProduct INPUT to the function is any matrix, A OUTPUT is the product of the matrix with its



Problem Summary Write a MATLAB nested function, MyTransposeProduct INPUT to the function is any matrix, A OUTPUT is the product of the matrix with its transpose. This of oourse can be done two ways, AA' and A'A, so there will be two output arguments (in the order shown) Use previous assignments MyTranspose and mymatmult. Function mymatnu1t should be a subfunction in MyTransposeProduct. Just like in those assignments, the transpose and muitiplications should be done with for-loops. Example 1 01 IA1, A21-MyTransposeProduct(A) A1-2 81 6 Test 1 (Pretes) Undefined function or variable 'transpaA Error in MyTransposeProduct (line 27) A1-mymatmult(A,transpaA); Error in Test1 (line 4) [A1, A2]-MyTransposeProduct(A); > Test 2 (Pretest) Undefined function or variable 'transpaA' Error in MyTransposeProduct (line 27) A1-mymatmult(A,transpaA); Error in Test2 (line 2) [B, C]-MyTransposeProduct(A); Test 3 (Pretest) Undefined function or variable 'transpaA Error in MyTransposeProduct (line 27) A1-mymatmult(A,transpaA); Error in Test3 (line 2) [a, b]-MyTransposeProduct(A); Test for using zeros (Pretest) Preallocate the output array (in both functions)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
