%% Create 3-D Scatter Plot  

% Copyright 2015 The MathWorks, Inc.


%% 
% Create a 3-D scatter plot. Use |sphere| to define vectors |x|, |y|, and |z|. 
figure
[X,Y,Z] = sphere(16);
x = [0.5*X(:); 0.75*X(:); X(:)];
y = [0.5*Y(:); 0.75*Y(:); Y(:)];
z = [0.5*Z(:); 0.75*Z(:); Z(:)];
scatter3(x,y,z)      

