フィルターのクリア

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 Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by