L2 norm of the column

4 次查看(过去 30 天)
Heya :)
Heya :) 2020-4-2
编辑: Heya :) 2020-10-15
How can I write the code to find the L2 norm of the column (G`)ij as shown in the picture below. In my code I have used M instead of G.

采纳的回答

Torsten
Torsten 2020-4-2
M_norm = normc(M)
  6 个评论
Heya :)
Heya :) 2020-4-2
编辑:Heya :) 2020-10-15
ok
Torsten
Torsten 2020-4-2
If G is the matrix you want to normalize, then G' = normc(G).
I think that G=M in your code, but I'm not sure.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by