Main Content

findstartstoptimes

Class: Aero.Body
Namespace: Aero

Return start and stop times of time series data

Syntax

[tstart,tstop] = findstartstoptimes(h,tsdata)

Description

[tstart,tstop] = findstartstoptimes(h,tsdata) returns the start and stop times of time series data tsdata for the animation body object h.

Input Arguments

expand all

Aerospace body object, specified as an Aero.Body object.

Time series data for animation object, specified as a timeseries object, timetable object, Simulink®, or double precision array.

Dependencies

The TimeSeriesSource property affects the interpretation of this argument.

Output Arguments

expand all

Start time, returned as a scalar.

Stop time, returned as a scalar.

Examples

expand all

Find the start and stop times of the timeseries data tsdata.

b=Aero.Body;
b.load('pa24-250_orange.ac','Ac3d');
tsdata = [ ...
    0,  1,1,1, 0,0,0; ...
    10  2,2,2, 1,1,1; ];
 b.TimeSeriesSource = tsdata;
[tstart,tstop] = findstartstoptimes(b,tsdata)
tstart = 
0
tstop = 
10

Version History

Introduced in R2007a