Main Content

findstartstoptimes

Class: Aero.Node
Namespace: Aero

Return start and stop times of time series data

Description

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

example

Input Arguments

expand all

Aerospace node object, specified as an instance of the Aero.Node class.

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

This example shows how to find the start and stop times of the time series data, takeoffData.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = 'asttkoff.wrl';
h.initialize();

Figure VR Plane Take-Off contains objects of type hgjavacomponent, uimenu, uipanel, uitoolbar.

load takeoffData;
h.Nodes{7}.TimeSeriesSource = takeoffData;
h.Nodes{7}.TimeSeriesSourceType = 'StructureWithTime';
[tstart,stop]=h.Nodes{7}.findstartstoptimes
tstart = 
0
stop = 
15

Version History

Introduced in R2007a