<< mps_col_scale Matrix manipulation mps_row_exg >>

mpscilab >> mpscilab > Matrix manipulation > mps_row_scale

mps_row_scale

Divide the rows of a matrix

Calling Sequence

mps_row_div( rop, op, row )

Arguments

rop

multi-precision matrix

op

multi-precision or double scalar

col

Integer scalar

Description

Divide the row row of rop by op. This operation is always performed in-place.

Examples

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

// Scaling by a double scalar
A = [1 -2; 3 -4]
mpsA = mps_init2(A,100)
mps_row_div(mpsA,40,2)

See Also

<< mps_col_scale Matrix manipulation mps_row_exg >>