attempt to solve y,but get numel(y)=1
Show older comments
for j=1:4;
for i=j+1:4;
y(i)=y(i)-A(i,j)*y(i);
end
if A(j,j)==0
break;
else
y(j)=b(j)/A(j,j);
end
end
Answers (1)
Azzi Abdelmalek
on 15 Oct 2013
Edited: Azzi Abdelmalek
on 15 Oct 2013
0 votes
Have you initialized y?
Categories
Find more on Loops and Conditional Statements 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!