<< mps_col_exg Matrix manipulation mps_row_scale >>

mpscilab >> mpscilab > Matrix manipulation > mps_col_scale

mps_col_scale

Scale the columns of a matrix

Calling Sequence

mps_col_scale( rop, op, col )

Arguments

rop

multi-precision matrix

op

multi-precision or double scalar

col

Integer scalar

Description

Scale the column col 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_col_scale(mpsA,mpsB,2)

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

See Also

<< mps_col_exg Matrix manipulation mps_row_scale >>