function [ A ] = swapRows( A,u,v ) %swapRows: swap rows u and v of matrix A and send the answer as output storeMe = A( v, : ); % store row v of A A( v , : ) = A( u, : ); % copy row u of A into row v of A A( u , : ) = storeMe; % copy the stored row into row u of A end