Question: A symmetric tridiagonal matrix A can have nonzero values at only diagonal elements and elements just below or above diagonal elements. Also A ^ T
A symmetric tridiagonal matrix A can have nonzero values at only diagonal elements and elements just below or above diagonal elements. Also ATA due to the symmetry. For example,
A@@@
is an n by n symmetric tridiagonal matrix with n the diagonal elements d and the nondiagonal elements a
Write a MATLAB function AsymTrinda to return such an n by n matrix A with the same diagonal values d and nondiagonal values a
Use no special builtin functions.
Make an empty matrix A first. All the elements are zeros right after its creation.
For efficiency, your program should update the necessary elements only, ie do not rewrite a zero into another zero.
Include your m script file in the zip file.
What is the asymptotic running time of your algorithm? Your answer should be Ofn for a simple function fn of n Briefly justify your answer regarding a substitution Aijx as one floating point operation Aijx
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
