Effacer les filtres
Effacer les filtres

Normalize columns of matrix with complex data?

12 vues (au cours des 30 derniers jours)
belle
belle le 20 Jan 2017
Commenté : Amit Sravan Bora le 19 Août 2022
I have an array with complex values and I want to normalise the columns. I tried normc(array). But the error is: Data is complex. Is there a way to get around this?
  6 commentaires
belle
belle le 20 Jan 2017
Take each element and multiply by its complex conjugate, so the elements would become real. Square each element and add together. To normalise, divide by sqrt of the sum of the squares.
belle
belle le 20 Jan 2017
worked out how to do it in MATLAB! :)

Connectez-vous pour commenter.

Réponse acceptée

Adam
Adam le 20 Jan 2017
array = array ./ ( sum( ( array .* conj(array) ).^2 ) ).^0.25
  1 commentaire
Amit Sravan Bora
Amit Sravan Bora le 19 Août 2022
@adam Hi, is that the frobenius norm that you're dividing the matrix with?
Thanks

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by