- #1
jasoncurious
- 8
- 0
Hi guys, I am currently doing a Matlab program for partial pivoting. I looked at my friend's example:
I was wondering what's the meaning of the : in the parentheses. Is it some sort of Matlab keyword? Thanks for helping
Code:
% Partial Pivoting
for i=1:n-1
for j = i+1:n
if (a(j,i)) > (a(i,i))
u=a(i,:);
a(i,:)=a(j,:);
a(j,:)=u;
v=b(i,1);
b(i,1)=b(j,1);
b(j,1)=v;
end
end
end
I was wondering what's the meaning of the : in the parentheses. Is it some sort of Matlab keyword? Thanks for helping