dur = ros2duration(secs,nsecs)
initializes the duration values for seconds and nanoseconds individually. The function
automatically wraps large values of nsecs, and adds the remainder to
the seconds value of the message, secs.
Total time, specified as a floating-point scalar. The integer portion sets the
sec field, and the remainder sets the nanosec
field of the duration message dur.
Whole seconds, specified as an integer. This value directly sets to the
sec field of the duration message dur.
Note
The maximum and minimum values for secs are
2147483648 and 2147483647,
respectively.
Nanoseconds, specified as a positive integer. This value directly sets the
nanoSec field of the duration message dur,
unless it is greater than or equal to 109. If so, the
function wraps the value and adds the remainder to the value of
secs.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.