I have a phase angle at some amplitude, Please check the image i attached , why is it not getting plotted at particular Angle? I have pasted my code as well,,,anyone help

2 次查看(过去 30 天)
phase = 26.52867848 amp = 0.463647609 theta_rad = phase ; polar(theta_rad, amp, 'r.');
Output is
: See the red dot,, it should have got plotted at 26 Degree at that particular AMP(Radius)...What is the prob ?

采纳的回答

Star Strider
Star Strider 2017-3-18
It is plotting correctly (the red dot at about 80°) if ‘phase’ is actually in radians. If it’s in degrees and you want to convert it to radians, do the conversion first:
phase = 26.52867848;
amp = 0.463647609;
theta_rad = phase*pi/180; % Degrees-To-Radians
polar(theta_rad, amp, 'r.')
  3 个评论
Image Analyst
Image Analyst 2017-3-18
By the way, polar() is deprecated. They recommend you start using polarplot() from now on, if you have R2016a or later.
You might also find deg2rad() or cart2pol() helpful.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Polar Plots 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by