Effacer les filtres
Effacer les filtres

Norm of a vector

1 vue (au cours des 30 derniers jours)
Ayesha
Ayesha le 12 Fév 2014
Hi,
I would like to ask if there is any simple way of calculating norm of vector rather than using built-in function norm?

Réponses (1)

Roger Stafford
Roger Stafford le 12 Fév 2014
For the "L2" norm of a vector v you can use
sqrt(sum(v.^2))
This is only one form of the 'norm' function. See the documentation for others.

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by