Multiply matrices with complex values

I have a special requirement with respect to the multiplication of the matrices. The elements of the matrices are complex numbers.
eg, A = [1+1i, 2+2i; 3+3i 4+4i] B = [1+1i, 2+2i; 3+3i 4+4i]
If C = A*B , C is usually a matrix of complex values.
that is, C(1,1) = ((1+1i)*(1+1i))+((2+2i)*(3+3i))
But in my case I want C(1,1) = abs((1+1i)*(1+1i))+abs((2+2i)*(3+3i)) and similiarly for all the elements of the reulting matrix C
Is there any special function to do this automatically or should this be done manually using loops?

1 件のコメント

Azzi Abdelmalek
Azzi Abdelmalek 2012 年 11 月 28 日
編集済み: Azzi Abdelmalek 2012 年 11 月 28 日
C(1,2)=?
What does mean "similarly"?

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

回答 (1 件)

Babak
Babak 2012 年 11 月 28 日

0 投票

The result is equivallent to
A = [1+1i, 2+2i; 3+3i 4+4i];
B = [1+1i, 2+2i; 3+3i 4+4i];
C = abs(A)*abs(B)
since
a = 3+2i; b = 4-1i; % for exmaple
abs(a*b) = abs(a)*abs(b)
for any scalar complex number a, b.

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

製品

質問済み:

2012 年 11 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by