ramani
Member level 4
tridiagonal matrix matlab
hi to all,
what is the syntax used in matlab to form tridiagonal matrix from the available lower,main and upper diagonal elements.
if i use T1=diag(md1)+diag(ld1,-1)+diag(ud1,1);,
it is not working for 2×2 tridiagonal matrix.
for 2×2 tridiagonal matrix all elements should present.
is there any matlab program available for this?
hi to all,
what is the syntax used in matlab to form tridiagonal matrix from the available lower,main and upper diagonal elements.
if i use T1=diag(md1)+diag(ld1,-1)+diag(ud1,1);,
it is not working for 2×2 tridiagonal matrix.
for 2×2 tridiagonal matrix all elements should present.
is there any matlab program available for this?