翻译自 MATLAB 官方文档
theta = 0:0.01:2*pi;
rho = sin(2*theta).*cos(2*theta);
polarplot(theta,rho)
- 1
- 2
- 3
polarscatter:极坐标中的散点图
th = pi/4:pi/4:2*pi;
r = [19 6 12 18 16 11 15 15];
polarscatter(th,r)
- 1
- 2
- 3
polarhistogram : 极坐标中的直方图
theta = [0.1 1.1 5.4 3.4 2.3 4.5 3.2 3.4 5.6 2.3 2.1 3.5 0.6 6.1];
polarhistogram(theta,6)
- 1
- 2
compass : 绘制从原点发射出的箭头
rng(0,'twister') % initialize random number generator
M = randn(20,20);
Z = eig(M);
figure
compass(Z)
- 1
- 2
- 3
- 4
- 5
- 6
ezpolar:易用的极坐标绘图函数
figure
ezpolar('1+cos(t)')
- 1
- 2