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

조회 수: 28 (최근 30일)
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일
  댓글 수: 3
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)

카테고리

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