There is an easy way to get phasor representation ?

518 ビュー (過去 30 日間)
Andre
Andre 2014 年 4 月 17 日
コメント済み: Tonny Tomo 2020 年 2 月 26 日
I have a periodic signal (x,y) with 1000 samples. (like a sin with 1000 samples).
Matlab provides a simple way to get this to a phasor representation ?
Andre

採用された回答

Star Strider
Star Strider 2014 年 4 月 17 日
I am not aware of a specific phasor notation in MATLAB. Since they are a convenient way of representing complex numbers, leave them as complex variables for calculations and convert them to phasor notation when you output them:
z = 3 + j*5
phasorr = @(z) [abs(z) angle(z)]; % angle in radians
phasord = @(z) [abs(z) atan2d(imag(z),real(z))]; % angle in degrees
phasorr(z)
phasord(z)
I used atan2d in the degree version because in my experience, they do more accurate conversions than multiplying radian angles by (180/pi).

その他の回答 (1 件)

Maarten Kjær den Haan
Maarten Kjær den Haan 2019 年 2 月 22 日
I have made this script which allows users to work with polar phasor representation and plot them easily.
  1 件のコメント
Tonny Tomo
Tonny Tomo 2020 年 2 月 26 日
Thank you very much.

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

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by