mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-06 17:03:02 +02:00
5 lines
148 B
Mathematica
5 lines
148 B
Mathematica
|
|
function Matrix = swapRowMatrix(Matrix, i1, i3)
|
||
|
|
tempRow = Matrix(i1 , :);
|
||
|
|
Matrix(i1 , :) = Matrix(i3, :);
|
||
|
|
Matrix(i3, :) = tempRow;
|
||
|
|
end
|