Warning: Matrix is singular to working precision.程序是这样的A=zeros(8);b=zeros(8,1);c=[]; for j=1:7; A(j,1)=j/7; A(j,2)=-1; A(end,3:end)=1; b(8,1)=78.36969; endc=A\b要怎么解决?出
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 05:16:50
Warning: Matrix is singular to working precision.程序是这样的A=zeros(8);b=zeros(8,1);c=[]; for j=1:7; A(j,1)=j/7; A(j,2)=-1; A(end,3:end)=1; b(8,1)=78.36969; endc=A\b要怎么解决?出
Warning: Matrix is singular to working precision.
程序是这样的
A=zeros(8);b=zeros(8,1);c=[];
for j=1:7;
A(j,1)=j/7;
A(j,2)=-1;
A(end,3:end)=1;
b(8,1)=78.36969;
end
c=A\b
要怎么解决?出现了 Matrix is singular to working precision.
MATLAB程序
Warning: Matrix is singular to working precision.程序是这样的A=zeros(8);b=zeros(8,1);c=[]; for j=1:7; A(j,1)=j/7; A(j,2)=-1; A(end,3:end)=1; b(8,1)=78.36969; endc=A\b要怎么解决?出
这说明你在求矩阵时,产生奇异了,我想是你取值太靠近了,这样很容易产生奇异值
你看看你的Z:
Z =
NaN NaN NaN NaN NaN NaN -Inf
NaN NaN NaN NaN NaN NaN -Inf
NaN NaN NaN NaN NaN NaN -Inf
NaN NaN NaN NaN NaN NaN -Inf
NaN NaN NaN NaN NaN NaN -Inf
NaN NaN NaN NaN NaN NaN -Inf
NaN NaN NaN NaN NaN NaN -Inf
把这句改了一下也还是不行,显示矩阵的秩为1,y=0.9:0.1:1.2;
是你取的值太靠近了.