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

1 次查看(过去 30 天)
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

采纳的回答

Matt J
Matt J 2020-11-23
编辑:Matt J 2020-11-23
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Gas Models 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by