www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/UseMarkerWithVaryingSizesAndColorsExample.m

    %% Use Markers with Varying Sizes and Colors
% Create a scatter chart with markers of varying sizes and colors. Specify
% the optional size and color input arguments as vectors. Use unique values
% in the color vector to specify the different colors you want. The values
% map to colors in the colormap.

th = pi/4:pi/4:2*pi;
r = [19 6 12 18 16 11 15 15];
sz = 100*[6 15 20 3 15 3 6 40];
c = [1 2 2 2 1 1 2 1];
polarscatter(th,r,sz,c,'filled','MarkerFaceAlpha',.5)