polar function

polar function

Drawing polar plot

Call format

polar(theta,rho,选项)

  • polar angle theta polar coordinates
  • rho is the radius vector of the polar coordinate
  • Content options with the plot function is similar.

For example

Drawing r = sin (t) cos (t) of the polar diagram, and the data point marker.

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

polar.jpg

Guess you like

Origin www.cnblogs.com/rongyupan/p/12662512.html