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

    %% Specify Axes for 3-D Scatter Plot

% Copyright 2015 The MathWorks, Inc.


%% 
% Load the |seamount| data set to get vectors |x|, |y|, and |z|. 
load seamount  

%% 
% Create a figure with two subplots and return the handles to the two axes
% in array |hs|. In each subplot, create a 3-D scatter plot. Specify the
% marker properties for each scatter plot.
figure
hs(1) = subplot(2,1,1);
hs(2) = subplot(2,1,2);
scatter3(hs(1),x,y,z,'MarkerFaceColor',[0 .75 .75])
scatter3(hs(2),x,y,z,'*')