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.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.