Forming a tridagonical matrix

1 次查看(过去 30 天)
stamos dontas
stamos dontas 2021-10-18
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

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Operating on Diagonal Matrices 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by