Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Rounds matlab datenum time to a multiple value of a time unit.
Have you ever wanted to grid a dataset on, say, a 15 minute grid, and want the time to start at the nearest 15 minute interval from the top of the hour? This is the script for you!
For time = datenum(2023,11,10,18,23,47), round_datenum(time,'minute',15,'ceil') returns datenum(2023,11,10,18,30,00)
Handles rounding year, month, day in year, hour, minute, and second
Can specify to round to the nearest value, or in a set direction
Only workes for single datenum time inputs
Citation pour cette source
Alexander Andriatis (2026). round_datenum (https://fr.mathworks.com/matlabcentral/fileexchange/154890-round_datenum), MATLAB Central File Exchange. Extrait(e) le .
Informations générales
- Version 1.0.0 (1,88 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.0.0 |
