# Solve ill-condition matrix

7 visualizzazioni (ultimi 30 giorni)
jason law il 7 Lug 2020
Risposto: M il 8 Lug 2020
How can I solve Ax=B matrix when the command window in matlab mentioned"matrix is badly scaled, singular Rcond 1e-16" something like this
I am using vpa(A), then inv(A) to solve the matrix, but the speed is a bit slow as I need to run for 1e4 times.
What is the difference between using these two methods pinv() and vpa(), inv()?
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Risposte (1)

M il 8 Lug 2020
Does it display this warning but still solve the equation ? How are the results ?
You can also try : x = A\B . It solves the system of linear equations A*x = B.
From Matlab doc : "If A is a square matrix, then A\B is roughly equal to inv(A)*B, but MATLAB processes A\B differently and more robustly."
##### 0 CommentiMostra -2 commenti meno recentiNascondi -2 commenti meno recenti

Accedi per commentare.

### Categorie

Scopri di più su Linear Algebra in Help Center e File Exchange

### Community Treasure Hunt

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

Start Hunting!

Translated by