polar函数

polar函数

绘制极坐标图

调用格式

polar(theta,rho,选项)

  • theta为极坐标极角
  • rho为极坐标矢径
  • 选项的内容与plot函数相似。

举例

绘制r=sin(t)cos(t)的极坐标图,并标记数据点。

t=0:pi/50:2*pi;
r=sin(t).*cos(t);
polar(t,r,'-*');

polar.jpg

猜你喜欢

转载自www.cnblogs.com/rongyupan/p/12662512.html
今日推荐