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.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.