What is wrong with this loop.
显示 更早的评论
for k=n:n-2,
for i=n-1:1
m=A(i,k)/A(k,k)
for j=n:1
A(i,j)=A(i,j)-A(k,j)*m
end
b(i)=b(i)-b(k)*m
end
end
I am trying to write a for loop code for Guess Jordan Elimination, where n=length(b) A and b are both matrices of a system of equations.
I think the problem is with k because the value of k in the workspace is []
2 个评论
KSSV
2017-10-26
YOu have not specified all the variables and you have not specified what error you face.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!