Effacer les filtres
Effacer les filtres

The loss of precisions

2 vues (au cours des 30 derniers jours)
renoald Tang
renoald Tang le 4 Mai 2012
hai , i applied the Least square adjustment in matlab:X=inv(N)*XA for your information , the value of X ,N and XA should be same with the value in the textbook. After computation , I had found that value of N and XA are same with the value in the book , but the X value is not same : 448.0686(from matlab) 448.1087(from book) 453.3532(from matlab) 453.4685(from book) 444.9608 (from matlab) 444.9436(from book) The X value is very importance for next step computation. If i not wrong , this is loss precision cause by inv. How to resolve this problem ?

Réponse acceptée

Daniel Shub
Daniel Shub le 4 Mai 2012
If you read the documentation of inv
doc inv
In practice, it is seldom necessary to form the explicit inverse of a matrix. A frequent misuse of inv arises when solving the system of linear equations Ax = b. One way to solve this is with x = inv(A)*b. A better way, from both an execution time and numerical accuracy standpoint, is to use the matrix division operator x = A\b. This produces the solution using Gaussian elimination, without forming the inverse. See mldivide (\) for further information

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by