%% Specify Subplot for Scatter Plot
% Create a figure with two subplots and add a scatter plot to each subplot. 
% Use filled  diamond markers for the scatter plot in the lower subplot.

% Copyright 2015 The MathWorks, Inc.


x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
ax1 = subplot(2,1,1);
scatter(ax1,x,y)

ax2 = subplot(2,1,2);
scatter(ax2,x,y,'filled','d')