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

17 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by