# JULIA matrix norm is different MATLAB

**URL:** <https://discourse.julialang.org/t/julia-matrix-norm-is-different-matlab/72500>\
**Category:** General Usage\
**Tags:** question\
**Created:** [December 3, 2021, 2:38am UTC](https://discourse.julialang.org/t/julia-matrix-norm-is-different-matlab/72500 "2021-12-03T02:38:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [December 3, 2021, 2:50am UTC](https://discourse.julialang.org/t/julia-matrix-norm-is-different-matlab/72500/2 "2021-12-03T02:50:47Z")

</div>

If I copied your matrix correctly:

```julia
julia> a3 = [0 sqrt(2)/2 sqrt(2) sqrt(2)/2 0 -sqrt(2)/2 -sqrt(2) -sqrt(2)/2;
             -sqrt(2)/2 -sqrt(2) 0 sqrt(2)/2 sqrt(2) -sqrt(2)/2 0 -sqrt(2)/2]
2×8 Matrix{Float64}:
  0.0 0.707107 1.41421 0.707107 0.0 -0.707107 -1.41421 -0.707107
 -0.707107 -1.41421 0.0 0.707107 1.41421 -0.707107 0.0 -0.707107

julia> norm(a3)
3.464101615137755

```

the result looks correct to me: the sum of the squares of the elements is 12, it’s square root is 3.464…, which is the 2-norm. Does Matlab give the 2-norm as well with the `norm` function?

---

_[View the full topic](https://discourse.julialang.org/t/julia-matrix-norm-is-different-matlab/72500)._
