%% Variance of Sample Data
% Create a timeseries object and compute the variance of the sample data.

ts = timeseries((1:10)');
tsvar = var(ts)

% Copyright 2012 The MathWorks, Inc.