findstartstoptimes (Aero.Node)

Return start and stop times for time series data

Syntax

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

Description

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

Examples

Find the start and stop times of the time series data, takeoffData.

h = Aero.VirtualRealityAnimation;
h.VRWorldFilename = [matlabroot,'/toolbox/aero/astdemos/asttkoff.wrl'];
copyfile(h.VRWorldFilename,[tempdir,'asttkoff.wrl'],'f');
h.VRWorldFilename = [tempdir,'asttkoff.wrl'];
h.initialize();
load takeoffData;
h.Nodes{7}.TimeseriesSource = takeoffData;
h.Nodes{7}.TimeseriesSourceType = 'StructureWith Time';
[tstart,stop]=h.Nodes{7}.findstartstoptimes;
Was this topic helpful?