필터 지우기
필터 지우기

Normalize columns of matrix with complex data?

조회 수: 12 (최근 30일)
belle
belle 2017년 1월 20일
댓글: Amit Sravan Bora 2022년 8월 19일
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
belle
belle 2017년 1월 20일
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 2017년 1월 20일
worked out how to do it in MATLAB! :)

댓글을 달려면 로그인하십시오.

채택된 답변

Adam
Adam 2017년 1월 20일
array = array ./ ( sum( ( array .* conj(array) ).^2 ) ).^0.25
  댓글 수: 1
Amit Sravan Bora
Amit Sravan Bora 2022년 8월 19일
@adam Hi, is that the frobenius norm that you're dividing the matrix with?
Thanks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrices and Arrays에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by