<< mps_row_scale Matrix manipulation mps_row_scale >>

mpscilab >> mpscilab > Matrix manipulation > mps_row_exg

mps_row_exg

Swap rows of a matrix

Calling Sequence

mps_row_exg( op, row1, row2 )

Arguments

op

multi-precision matrix

row1, row2

Integer scalar

Description

Exchange the row number row1 with row2 of op. This operation is always performed in-place.

Examples

// Standard usage.
A = [1 -2; 3 -4]
mpsA = mps_init2(A,100)
mps_row_exg(op,1,2)

See Also

<< mps_row_scale Matrix manipulation mps_row_scale >>