Info

This question is closed. Reopen it to edit or answer.

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

1 view (last 30 days)
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

Answers (2)

Steven Lord
Steven Lord on 7 Mar 2020
Use the vecnorm function.

Chunxiao Tang
Chunxiao Tang on 16 Jun 2020
vecnorm

Community Treasure Hunt

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

Start Hunting!