DSPRelated.com
Forums

matrix inversion in matlab

Started by delechelle October 12, 2006
Hi

I need to inverse a rather large matrix. Using 'inv'
takes much time and I need to speed this up. What I actually have
is the the follwing:

B=V*D*V^{-1}

Where V is an eigenvectors matrix, and D the eigenvalues diagonal matrix,
as

[V,D]=eig(A) % in matlab


delechelle wrote:
> Hi > > I need to inverse a rather large matrix. Using 'inv' > takes much time and I need to speed this up. What I actually have > is the the follwing: > > B=V*D*V^{-1} > > Where V is an eigenvectors matrix, and D the eigenvalues diagonal matrix, > as > > [V,D]=eig(A) % in matlab
I don't know if it is faster, but try the syntax described in 'help slash' John
delechelle skrev:
> Hi > > I need to inverse a rather large matrix. Using 'inv' > takes much time and I need to speed this up. What I actually have > is the the follwing: > > B=V*D*V^{-1}
What does B look like? If this is what one often occuring situation, inverting V could be a lot cheaper than you could possibly imagine... Rune
Rune Allnor skrev:
> delechelle skrev: > > Hi > > > > I need to inverse a rather large matrix. Using 'inv' > > takes much time and I need to speed this up. What I actually have > > is the the follwing: > > > > B=V*D*V^{-1} > > What does B look like? If this is what one often occuring situation, > inverting V could be a lot cheaper than you could possibly imagine...
> > Where V is an eigenvectors matrix, and D the eigenvalues diagonal matrix, > > as
> > [V,D]=eig(A) % in matlab
Sorry. I meant to ask what A looks like. Rune
> >Rune Allnor skrev: >> delechelle skrev: >> > Hi >> > >> > I need to inverse a rather large matrix. Using 'inv' >> > takes much time and I need to speed this up. What I actually have >> > is the the follwing: >> > >> > B=V*D*V^{-1} >> >> What does B look like? If this is what one often occuring situation, >> inverting V could be a lot cheaper than you could possibly imagine... > >> > Where V is an eigenvectors matrix, and D the eigenvalues diagonal
matrix,
>> > as > >> > [V,D]=eig(A) % in matlab > >Sorry. I meant to ask what A looks like. > >Rune > >
Hi, A is a pentadiagonal matrix Eric