Filter löschen
Filter löschen

Normalize columns of matrix with complex data?

12 Ansichten (letzte 30 Tage)
belle
belle am 20 Jan. 2017
Kommentiert: Amit Sravan Bora am 19 Aug. 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 Kommentare
belle
belle am 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 am 20 Jan. 2017
worked out how to do it in MATLAB! :)

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by