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

1 view (last 30 days)
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

Accepted Answer

Matt J
Matt J on 23 Nov 2020
Edited: Matt J on 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

More Answers (0)

Categories

Find more on Gas Models in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!