Re: Matrix is singular to working precision
- From: Greg Heath <heath@xxxxxxxxxxxxxxxx>
- Date: Sun, 16 Sep 2007 03:31:18 -0700
On Sep 16, 3:05 am, "kalyan goutham" <kalyan_gout...@xxxxxxxxxxxxx>
wrote:
Greg Heath <he...@xxxxxxxxxxxxxxxx> wrote in message
<1188039449.065578.306...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
On Aug 25, 12:20 am, sandip....@xxxxxxxxx wrote:
hello everyone,
i am getting this error while computing the inverse of a
matrix Is there a way to circumvent or avoid the problem??
Yes.
Don't calculate the inverse of an ill-conditioned matrix.
If you are trying to solve a linear system of equations
it is not necessary. Just use the BACKSLASH operator.
If it is for another reason, please explain.
i have to perform the inverse of a matrix
"have"? That is rarely the case. If, as I had asked previously,
you would explain the underlying problem, maybe someone
can suggest a way to avoid doing that.
which may turn out
to be singular in the subsequent loops.i donot know how to
avoid this problem.
Go tp the source:
What, in the underlying problem, causes a singular matrix?
i cannot use the linear system of euation
since the inverse of the matrix is required for the
calculation of density function.
I'll make a wild guess that you are calculating the density
function of a Gaussian. Instead of giving you the answer,
I will ask you a question.
What causes the covariance matrix of a set of data to
be singular?
HINT: I can think of two reasons.
Once you understand this, you might be able to go back
and prevent this from happening.
could yo please help me find the solution.
is there a way to avoid the NAN numbers.
1. Reformulate the problem so that singular matrices
do not occur. Typically, this can be done.
2. ONLY if the above is not possible, Try one of the
the following
a. eye(size(A))/A
b. A\eye(size(A))
c. help PINV
Hope this helps.
Greg
.
- References:
- Re: Matrix is singular to working precision
- From: kalyan goutham
- Re: Matrix is singular to working precision
- Prev by Date: getting fixpoinst with laple
- Next by Date: Re: Neural Network in Matlab - AND operations
- Previous by thread: Re: Matrix is singular to working precision
- Next by thread: Re: Matrix is singular to working precision
- Index(es):
Relevant Pages
|