WUT_Computer_Science/ENUME/projectA/swapRowMatrix.m

5 lines
148 B
Mathematica
Raw Normal View History

function Matrix = swapRowMatrix(Matrix, i1, i3)
tempRow = Matrix(i1 , :);
Matrix(i1 , :) = Matrix(i3, :);
Matrix(i3, :) = tempRow;
end