Please how can i normalize the column of a complex matrix SAY U= [2 + 2i, 3+i; 4+5i , 4 -9i]

Please how can i normalize the column of a complex matrix SAY U= [2 + 2i, 3+i; 4+5i , 4 -9i]

1 件のコメント

Anthony Uwaechia
Anthony Uwaechia 2015 年 8 月 20 日
thanks alot it reall worked. what of if the question is rephrased this way
Make the column of the matrix U normalised to unit L2 norm
how will it be?

サインインしてコメントする。

 採用された回答

Noam
Noam 2015 年 8 月 20 日
U./abs(U)

3 件のコメント

Anthony Uwaechia
Anthony Uwaechia 2015 年 8 月 20 日
hanks alot it reall worked. what of if the question is rephrased this way
Make the column of the complex matrix U normalised to unit L2 norm
how will it be?
Noam
Noam 2015 年 8 月 20 日
L2 norm of each column?
Noam
Noam 2015 年 8 月 20 日
>> U = [2 + 2i, 3+i; 4+5i , 4-9i];
>> UL2 = sqrt(sum(abs((U.^2))));
>> ANS = bsxfun(@rdivide,U,UL2);

サインインしてコメントする。

その他の回答 (1 件)

Jennifer Rebbin
Jennifer Rebbin 2022 年 11 月 16 日
If you're using release R2018a or later, use the normalize function. Here is an example of normalizing by the 2-norm, where U is your matrix of complex data:
N = normalize(U,"norm",2)

カテゴリ

ヘルプ センター および File ExchangeLinear Algebra についてさらに検索

タグ

質問済み:

2015 年 8 月 20 日

回答済み:

2022 年 11 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by