Question: Please help me with matlab Im lost and cant do these! Thank you! 5. Create a 4x4 matrix A full of random real-values and a

 Please help me with matlab Im lost and cant do these!Please help me with matlab Im lost and cant do these! Thank you!

5. Create a 4x4 matrix A full of random real-values and a 4x 4 matrix B full of random, real-values. Implement a matrix addition routine in a function, C = matrix-add (A, B). Calculate the matrix C=A+B and display the matrices. 6. Create a 5x5 matrix P that is 3 or 9 times the Identity matrix, I. Create a 3x5 H matrix using the command, H = hankel (1:3,1:5); . Implement a matrix multiplication routine in a function, A = calc-A(P, H) using for-loops to calculate A=HPH'. Calculate the matrix A=HPH' and then display the three matrices. (Ignore the warning produced by the hankel() command) 7. Create several matrices of random real-values: A is a 7x3 matrix, B is a 7x6 matrix, D is a 6x4 matrix, E is a 3x5 matrix, and F is a 4x5 matrix. Implement a matrix multiplication routine with only for-loops in a function, G = calcGIA, B,D,E,F). Make the routine's matrices sizes generic. Calculate the matrix G=ABD+EFT and display the matrices upon return. Test your code using Matlab's inherent matrix multiplication capabilities

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!