Contents Previous Next Subchapters

Computing The Norm Of Each Column
Syntax colnorm(x)
See Also colmax , rownorm , abs , colmad , colmse

Description
Returns the norm of each column of x where x is a real, double-precision, or complex matrix. The return value is a row vector with the same number of columns as x. If x is complex, the return value is double-precision, otherwise the return value has the same type as x. The jth element of the return value is
          --------------------------------------
         /       2          2                 2
     \  / | x   |  + | x   |  + ... +  | x   |
      \/     1,j        2,j               n,j
where n is the number of rows in the matrix x.

Example
If you enter
     x = [{1., 1.}, {3., 4.}]
     colnorm(x)
O-Matrix will respond
     [ 1.41421 , 5 ]