Contents Previous Next Subchapters Current Chapters-> prctile ftail tpdf ttail ittail cnormal inormal rand snormal seed colmad colmse colrange colmode kurtosis skewness randperm ranseed unifm0v1 unirnd normrnd exprnd gamrnd cauchyrnd gumbelrnd laplacernd lognrnd wblrnd binornd poissrnd exppdf expcdf normpdf unifpdf unifcdf wblpdf wblcdf colcor colcov colmean colstd colmax rowmax colsum rowsum colnorm rownorm median colmedian colmead colvar corr conv conv2 sum cumsum prod cumprod Parent Chapters-> Omatrix6 statistics rownorm Search Tools-> contents reference index search

Computing The Euclidean Norm Of Each Row Of A Matrix
 Syntax `rownorm(`x`)` See Also rowmax , colnorm

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

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