%% Play Aero.Animation Object
% Animate the body, |idx1| , for the duration of the time series data.
%% Set up

% Copyright 2015 The MathWorks, Inc.

h = Aero.Animation;
h.FramesPerSecond = 10;
h.TimeScaling = 5;
idx1 = h.createBody('pa24-250_orange.ac','Ac3d');
load simdata;
h.Bodies{1}.TimeSeriesSource = simdata;

%% Show and play the animation
%
%   h.show();
%   h.play();
% 