MATLAB Answers

L2 norm of the column

조회 수: 17(최근 30일)
Heya :)
Heya :) 2 Apr 2020
편집: Heya :) 15 Oct 2020
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.

  댓글 수: 0

댓글을 달려면 로그인하십시오.

채택된 답변

Torsten
Torsten 2 Apr 2020
M_norm = normc(M)

  댓글 수: 6

표시 이전 댓글 수: 3
Torsten
Torsten 2 Apr 2020
Please include code and error message.
Heya :)
Heya :) 2 Apr 2020
ok
Torsten
Torsten 2 Apr 2020
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개)

Community Treasure Hunt

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

Start Hunting!

Translated by