Page 1 of 1

If anyone here is bored

Posted: Tue Jan 11, 2011 5:44 pm
by sw337
function P=pivoteer(M,pivotrow,pivotcolumn)

element=M(pivotrow,pivotcolumn)
for i=1:length(M(pivotrow,:))
M(pivotrow,i) = M(pivotrow,i)/element
end

for i=1:length(M(:,1))
fact=M(i,pivotcolumn)
for j=1:length(M(1,:))
if i<>pivotrow
M(i,j)=M(i,j)-(fact*M(pivotrow,j))
end
end
end
P=M
endfunction
try staring at this for an hour and you will redefine boreness :lol:

Re: If anyone here is bored

Posted: Tue Jan 11, 2011 6:49 pm
by IceT-Bag
Working with pivot tables in excel?

Re: If anyone here is bored

Posted: Tue Jan 11, 2011 10:39 pm
by sw337
in scilab :)

something like a self programmable "calculator"