how to calculate the norm of each elements of a matrix?

37 views (last 30 days)
I have a 4*n matrix which its elements are complex numbers. I want to calculate the norm of each element of the matrix to create a 4*n matrix of norms without using for loops.
Thank you in advance

Accepted Answer

Star Strider
Star Strider on 19 Jan 2019
I am not certain what you intend with the term ‘norm’.
See if the abs (link) function will do what you want.

More Answers (0)

Categories

Find more on Matrices and Arrays in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!