Question: thank you (15 points) Write a m-file that does the following: a) use for loops to create the square matrix G, whose elements are given
thank you
(15 points) Write a m-file that does the following: a) use for loops to create the square matrix G, whose elements are given by Skl = Vk + vi Vkl b) construct the transpose GT, c) compute the product GGT, and d) the trace of GGT. The trace of a matrix is defined as tr G=Ligii, i.e. the sum of all elements along the main diagonal. The only parameter is the size, n, of the square matrix G. Test it for n = 10 and n= 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
