Simplifying complex multiplications by means of polar coordinates

조회 수: 9 (최근 30일)
D_coder
D_coder 2020년 3월 12일
편집: James Tursa 2020년 3월 12일
I have a complex matrix A of size and another complex matrix P that has same size as A. But abs(P) = ones(size(M,N)) which indicates that P only contains phase related components and since it only contains phase related components it wont effect abs(A) when A.*P is performed. Coming to my problem. I want to reduce the complex multiplications of A.*P to complex additions angle(A) + angle(B). The pseudo code is as follows.
while above the interface
A = A.*P;
Accum(i,:) = sum(A,1);
i = i+1
end
I am stuck in the accum part. I am not getting how to join both absolute and phase without multiplying them before I sum all the M rows.
My approach so far as been follows:
absA = abs(A);
anA = angle(A);
anP = angle(P)
while above the interface
anA = anA + anP;
Accum(i,:) = sum(A,1); % I am stuck in the Accum part
i = i+1
end
  댓글 수: 5
D_coder
D_coder 2020년 3월 12일
The magnitudes are not 1, the magnitude is 1 only for matrix P. Was wondering if we had some function that would do some operation in polar form and then convert back to rectangular form?
Walter Roberson
Walter Roberson 2020년 3월 12일
Ok but you are not changing the magnitudes of any A entry so
Accum should come out with angle sum(angle(original A), 1) + iterations * sum(angle(P), 1) and magnitude sum(magnitude(original A), 1)
I think.

댓글을 달려면 로그인하십시오.

답변 (1개)

James Tursa
James Tursa 2020년 3월 12일
편집: James Tursa 2020년 3월 12일
It looks like your accumulation is trying to sum polar coordinates. You can't do that. I.e., if you have (r1,theta1) and (r2,theta2), you can't directly sum them in the fashion you are trying to do in polar coordinates. You would have to convert them back to cartesian coordinates, do the sum, and then convert back to polar to get your new r and theta values. Or do some combination of Law of Cosines and Law of Sines to get the new polar result. I don't see how you can get your proposed scheme to work.

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by