Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.699518e-25.

1 visualizzazione (ultimi 30 giorni)
my programm is actually just a simple backlash problem.
Vlmin = [0.0756;0.102;0.1404;0.1848;ect]
p_in = [50.855994816125985;56.758823881954406;64.706344253059480;72.994646508377330; ect]
b = (deltap-deltap_lambda-deltap_zetaT)*(2/dichte);
A = zeros(m,4);
for i = 1:m
A(i,1) = (V(i)/A2)^2;
A(i,2) = (V(i)/A1)^2;
A(i,3) = (V(i)/A3)^2;
A(i,4) = (V(i)/A5)^2;
end
C = A.'*A;
D = A.'*b;
x = C\D;
When I run it , I get the notification "Matrix is close to singular or badly scaled. Results may be inaccurate. RCOND = 1.699518e-25.". do you know how I can solve this issue..
I m welcomed to every idea

Risposta accettata

Matt J
Matt J il 23 Nov 2020
Modificato: Matt J il 23 Nov 2020
If C is singular, then C is singular and that's all there is to it. However, this will make the same inversion slightly less singular:
C=A;
D=b;
x=C\D

Più risposte (0)

Categorie

Scopri di più su Gas Models 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