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

29 vues (au cours des 30 derniers jours)
Please how can i normalize the column of a complex matrix SAY U= [2 + 2i, 3+i; 4+5i , 4 -9i]
  1 commentaire
Anthony Uwaechia
Anthony Uwaechia le 20 Août 2015
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?

Connectez-vous pour commenter.

Réponse acceptée

Noam
Noam le 20 Août 2015
  3 commentaires
Noam
Noam le 20 Août 2015
L2 norm of each column?
Noam
Noam le 20 Août 2015
>> U = [2 + 2i, 3+i; 4+5i , 4-9i];
>> UL2 = sqrt(sum(abs((U.^2))));
>> ANS = bsxfun(@rdivide,U,UL2);

Connectez-vous pour commenter.

Plus de réponses (1)

Jennifer Rebbin
Jennifer Rebbin le 16 Nov 2022
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)

Catégories

En savoir plus sur Just for fun dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by