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 than- datetimeformat, and you know the reference time for your initial timestamp, first use the- normalizeTimestampsobject function to normalize the timestamps to start from 0, and then use the- convertTimestampsobject function to convert the timestamps to a- datetimearray, specifying the- startFromargument 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