Round, Ceil and Floor Matlab-datenumbers
round/ceil/floor Matlab datenumbers to the nearest N or multiple N of a time_unit
Ahora está siguiendo esta publicación
- Verá actualizaciones en las notificaciones de contenido en seguimiento.
- Podrá recibir correos electrónicos, en función de las preferencias de comunicación que haya establecido.
Citar como
Oscar Hartogensis (2026). Round, Ceil and Floor Matlab-datenumbers (https://la.mathworks.com/matlabcentral/fileexchange/38167-round-ceil-and-floor-matlab-datenumbers), MATLAB Central File Exchange. Recuperado .
Agradecimientos
Inspirado por: round2
Información general
- Versión (14,9 KB)
Compatibilidad con la versión de MATLAB
- Compatible con cualquier versión
Compatibilidad con las plataformas
- Windows
- macOS
- Linux
| Versión | Publicado | Notas de la versión | Action |
|---|---|---|---|
| 1.4.0 | For very long datenumber-records datenumRound2_OH would give an "out of memory" error. This had to do with the unnecessary usage of diag.m, which is now replaced with a more memory friendly solution. |
||
| 1.3.0 | * Added do_one option: for time_units that count from 1 instead of 0 (i.e. 'DD',DOY' and 'MO') take N as incremental summation starting at 1
|
||
| 1.2.0 | solved a rounding error in intermediate time_variables that caused e.g. datestr(datenumFloor2_OH(datenum(2012,1,28,16,0,0),'HH',2,1)) to give 28-Jan-2012 14:00:00 instead of 16:00 |
||
| 1.1.0 | Added acknowledgement to round2 |
||
| 1.0.0 |