フィルターのクリア

Phasor representation of complex numbers

79 ビュー (過去 30 日間)
Aleem Andrew
Aleem Andrew 2020 年 4 月 20 日
コメント済み: Star Strider 2022 年 6 月 25 日
Instead of typing (3+4i)*(i), how can I multiply two complex numbers in phasor form, in this case
(5∠(arctan(4/3))*(∠90), and convert the result to rectangular form? I have tried representing the complex numbers as [r theta], but typing [5 arctan(4/3)]*[1 90] does not give the correct answer.

採用された回答

Star Strider
Star Strider 2020 年 4 月 20 日
Converting to phasor representation is definitely taking the long way round.
If you must:
r2p = @(x) [abs(x) rad2deg(angle(x))]; % Rectangular -> Phasor
p2r = @(x) x(1)*exp(1i*deg2rad(x(2))); % Phasor -> Rectangular
pm = @(x,y) [x(1)*y(1) x(2)+y(2)]; % Phasor Multiply
pd = @(x,y) [x(1)/y(1) x(2)-y(2)]; % Phasor Divide
x = 3+4i;
xp = r2p(x);
yp = [1 90];
xptimesyp = pm(xp,yp)
xrtimesyr = p2r(xptimesyp)
Check = x * p2r(yp)
producing:
xptimesyp =
5 143.13
xrtimesyr =
-4 + 3i
Check =
-4 + 3i
.
  2 件のコメント
Aleem Andrew
Aleem Andrew 2020 年 4 月 20 日
Thank you for your answer
Star Strider
Star Strider 2020 年 4 月 20 日
As always, my pleasure!

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

その他の回答 (1 件)

wahidin syahrir
wahidin syahrir 2022 年 6 月 25 日
thank you very much for your phasor equation sir/miss.
  1 件のコメント
Star Strider
Star Strider 2022 年 6 月 25 日
My pleasure!

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

カテゴリ

Help Center および File ExchangeLogical についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by