Code covered by the BSD License  

Highlights from
LaguerreEig

image thumbnail
from LaguerreEig by Damian Trif
Calculates numerical eigenvalues and eigenfunctions of Schroedinger problems on (0,infinity).

X=mult(n)
function X=mult(n)
X=zeros(n);
for i=1:n-1
    X(i,i)=2*i-1;
    X(i,i+1)=-i;
    X(i+1,i)=-i;
end
X(n,n)=2*n-1;

Contact us at files@mathworks.com