How to compute the norm of ever row vector in a matrix?

If I have a matrix M, how to find the norm of each row in M in a single line or a funcrion?
Thank you

Antworten (2)

Steven Lord
Steven Lord am 7 Mär. 2020

0 Stimmen

Use the vecnorm function.

Diese Frage ist geschlossen.

Gefragt:

am 7 Mär. 2020

Geschlossen:

am 20 Aug. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by