convertTimestamps
Syntax
Description
convertTimestamps(
converts and updates the timestamp format of the sensor data object
sensorDataObj,formatType)sensorDataObj to the specified format
formatType.
convertTimestamps(
converts and updates the timestamp format of the sensor data object
sensorDataObj,formatType,StartFrom=startFrom)sensorDataObj to the specified format formatType
using the reference start time startFrom.
Note
This feature requires the Scenario Builder for Automated Driving Toolbox™ support package. You can install the Scenario Builder for Automated Driving Toolbox support package from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.
Examples
Input Arguments
Tips
If you want to convert your timestamps to
datetimeformat from a format other thandatetimeformat, and you know the reference time for your initial timestamp, first use thenormalizeTimestampsobject function to normalize the timestamps to start from 0, and then use theconvertTimestampsobject function to convert the timestamps to adatetimearray, specifying thestartFromargument as the reference time for your initial timestamp. For more information, see the Convert Timestamp Format of GPS Data Object example.
Version History
Introduced in R2025b
See Also
GPSData | Trajectory | CameraData | LidarData | ActorTrackData | recordedSensorData