%% Scatter Plot with Dates and Durations
% Create a scatter plot with datetime or duration inputs using the scatter or scatter3 functions. For example, create a scatter plot with dates along the x-axis.

t = datetime('today') + caldays(1:100);
y = linspace(10,40,100) + 10*rand(1,100);
scatter(t,y)

% Copyright 2012 The MathWorks, Inc.