Norm of a vector
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi,
I would like to ask if there is any simple way of calculating norm of vector rather than using built-in function norm?
0 commentaires
Réponses (1)
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.
0 commentaires
Voir également
Catégories
En savoir plus sur Startup and Shutdown 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!