Forming a tridagonical matrix

2 views (last 30 days)
stamos dontas
stamos dontas on 18 Oct 2021
Hello,
Lets say I have 2 vectors v=[2 3], w=[6 7 8] and a zero nxn matrix. How can I form the tridagonical matrix which will begin and end with v vector and for each middle row, vector w middle element will be placed in his diagonal? Also will I be able to solve this system if I have a B=[1,n] row vector with linsolve?
Thank you in advance

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!