L2 norm of the column

1 visualizzazione (ultimi 30 giorni)
Heya :)
Heya :) il 2 Apr 2020
Modificato: Heya :) il 15 Ott 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.

Risposta accettata

Torsten
Torsten il 2 Apr 2020
M_norm = normc(M)
  6 Commenti
Heya :)
Heya :) il 2 Apr 2020
Modificato: Heya :) il 15 Ott 2020
ok
Torsten
Torsten il 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.

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by