theta=linspace(0,2*pi,100);
rho=sin(3*theta);
polarplot(theta,rho)
玫瑰图(极坐标柱状图):
theta=linspace(0,2*pi,360);
rho=abs(sin(6*theta));
polarhistogram
(theta,rho)
雷达图:
theta=linspace(0,2*pi,6);
data=[0.80.50.90.60.30.2];
polarplot(theta,data)
带填充的雷达图:
theta=linspace(0,2*pi,6);
data=[0.80.50.90.60.30.2];
polarplot(theta,data,'LineWidth',2)
holdo
n
polarplot(theta,data,'Color','blue','FaceAlpha',0.5)
holdoff
圆环图:
data=[302010515];
pie(data)
三维路径图:
x=linspace(-pi,pi,100);
y=sin(x);
z=cos(x);
comet3(x,y,z)
瓦片图(平铺图):
[X,Y]=meshgrid(1:5,1:5);
MATLAB中特殊图形的绘制示例
极坐标图: