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

    %% Fill in Markers  

% Copyright 2015 The MathWorks, Inc.


%% 
% Create vectors |x| and |y| as cosine and sine values with random noise.  
z = linspace(0,4*pi,250);
x = 2*cos(z) + rand(1,250);
y = 2*sin(z) + rand(1,250);  

%% 
% Create a 3-D scatter plot and fill in the markers. Use |view| to change
% the angle of the axes in the figure. 
scatter3(x,y,z,'filled')
view(-30,10)