function Aprime=interchangedisp(A,row1,row2)
% interchanges row1 and row2 in a matrix
% (c) 2013, Bernhard Bodmann

Aprime=A;
Aprime(row2,:)=A(row1,:);
Aprime(row1,:)=A(row2,:);

printf("Interchange rows %i and %i:\n",row1,row2);

dispsysmat(Aprime);


  