convertTimestamps
Syntax
Description
Add-On Required: This feature requires the Scenario Builder for Automated Driving Toolbox add-on.
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.
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