MATLAB Orthonormalization using Matlab

  • Thread starter Thread starter madeinmsia
  • Start date Start date
  • Tags Tags
    Matlab
Click For Summary
The discussion centers on using MATLAB's eig function to compute eigenvectors and eigenvalues from two matrices, A and B, specifically in the context of a Sturm-Liouville problem. The user notes that the eigenvectors obtained are not orthonormalized and seeks guidance on how to achieve orthonormalization. They mention that the general solution for their problem aligns closely with numerical results but appears to lack a weighting function. While MATLAB does not provide an inbuilt function for orthonormalization, several user-contributed functions are available on the MATLAB File Exchange, such as a Gram-Schmidt orthonormalization tool, which can assist in this process.
madeinmsia
Messages
15
Reaction score
0
I'm using matlab's [V,D]=eig(A,B) function to find the eigenvectors and eigenvalues given two full matrices of A and B.

I know the eigenvectors that I get are not orthonormalized, so how do I do this?

Let's say I'm solving a simple Sturm-Liouville problem like \phi''(x)}+\lambda\sigma(x)\phi(x) = 0 where \sigma(x) = 1 - x^{2}.

The general solution that I have by formulae is

\phi_{n}(x)\cong\frac{1}{\sigma^{1/4}}sin[\lambda_{n}^{1/2}\int\sigma(s)^{1/2}ds], \lambda_{n}\cong\frac{(n\pi)^{2}}{(\int\sigma(s)^{1/2}ds)^{2})}

When I compare the graph of the eigenfunction from my formula to the numerical eigenfunction I got, they are quite similar except it looks like it is missing some weighting function.
 
Physics news on Phys.org

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 0 ·
Replies
0
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K