Error:File:d:\MATLAB7\work\Untitled.m Line:31 Column:7This statement is incomplete.程序代码:%Input:增广矩阵A%Output:增广矩阵x[N,M]=size(A);for i=1:Nprow(i)=i;endfor i=1:N-1for k=i+1:Nif abs(A(prow(i),i))

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/16 22:49:56
Error:File:d:\MATLAB7\work\Untitled.mLine:31Column:7Thisstatementisincomplete.程序代码:%Input:增广矩阵A%Outp

Error:File:d:\MATLAB7\work\Untitled.m Line:31 Column:7This statement is incomplete.程序代码:%Input:增广矩阵A%Output:增广矩阵x[N,M]=size(A);for i=1:Nprow(i)=i;endfor i=1:N-1for k=i+1:Nif abs(A(prow(i),i))
Error:File:d:\MATLAB7\work\Untitled.m Line:31 Column:7This statement is incomplete.
程序代码:%Input:增广矩阵A
%Output:增广矩阵x
[N,M]=size(A);
for i=1:N
prow(i)=i;
end
for i=1:N-1
for k=i+1:N
if abs(A(prow(i),i))

Error:File:d:\MATLAB7\work\Untitled.m Line:31 Column:7This statement is incomplete.程序代码:%Input:增广矩阵A%Output:增广矩阵x[N,M]=size(A);for i=1:Nprow(i)=i;endfor i=1:N-1for k=i+1:Nif abs(A(prow(i),i))
for i=1:N-1%%该句for没有end
所以最后少个end,加上即可!