Borrar filtros
Borrar filtros

Normalize columns of matrix with complex data?

12 visualizaciones (últimos 30 días)
belle
belle el 20 de En. de 2017
Comentada: Amit Sravan Bora el 19 de Ag. de 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 comentarios
belle
belle el 20 de En. de 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 el 20 de En. de 2017
worked out how to do it in MATLAB! :)

Iniciar sesión para comentar.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by