Index-> contents reference index search Up-> SPT_HELP Mathematical Functions colmsq Prev Next SPT_HELP-> SPTFunctionsByCategory Mathematical Functions Data Manipulation Functions SignalGeneratorMain AnalogFilterFunctions FIR Filter Design Window Functions IIR Filter Design FourierFunctions Plotting Functions Histogram Functions Mathematical Functions-> colavg colmsq colrms db10 db20 even logn powerof2 OtherMathStat sinc colmsq Headings-> Description Example

Column-wise Mean-Square value of matrix
 Syntax `y = colmsq(`x`)` Include: `include spt\colmsq.oms` See Also
``` ARGUMENTS:      INPUTS:         x = MATRIX, any numerical type.    RETURN: VECTOR, column-wise mean-square value. ```
Description ``` ```Returns a row vector with the column-wise Mean-Square (msq) value of input matrix. Each element of the returned vector is the average of the norm squared of the corresponding column. Output is of same type as input except for INTEGER input which is coerced to DOUBLE before processing. COMPLEX inputs are converted to their ABSOLUTE value before being averaged; type DOUBLE is returned.

Example ``` ```For vectors: ``` O>x = {1,2,3,4,5} O>x { 1 2 3 4 5 } O>colmsq(x) 11  ``` For matrices: ``` O>A = {[1,2,3],[4,5,6]} O>A { [ 1 , 2 , 3 ] [ 4 , 5 , 6 ] } O>colmsq(A) [ 8.5 , 14.5 , 22.5 ]  ```