
Assignment 6: Linear equation
Hi,
In matlab programming, I have doubt on the following areas,
(1) nb=n+1. could you please tell me why we use this term.
(2) Also, Aug(j,i:nb)=Aug(j,i:nb)factor*Aug(i,i:nb) – i do not understand this also.
(3) I wrote the program as below, but i got error on AB(j,:)=AB(j,:)fac*AB(i;j);
(4) i=1:n1 (It means, we are eliminating the last column of augmented matrix, am i correct)
AB = [A B];
[m,n]=size(AB);
for i=1:n1
for j=i+1:n
fac=AB(j,i)/AB(ii);
AB(j,:)=AB(j,:)fac*AB(i;j);
end
end
Please clarify.
Thank you.
Log in to reply.