MATLAB: How to calculate the norm of each elements of a matrix

complex numbermatrixnorm

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

Best Answer

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