roundtowardvec
This function will round an inputed matrix, of any size, and round each value towards the vector of choices given. It can also be given a type of round ('floor','fix','ceil','round','away'), and will round toward -inf,0,inf,closest value, or away from 0 respectively.
Cita come
Tom R (2026). roundtowardvec (https://it.mathworks.com/matlabcentral/fileexchange/37674-roundtowardvec), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Code Generation > Fixed-Point Designer > Fixed-Point and Floating-Point Basics > Fixed-Point Concepts > Quantization > Precision >
- FPGA, ASIC, and SoC Development > Fixed-Point Designer > Fixed-Point and Floating-Point Basics > Fixed-Point Concepts > Quantization > Precision >
Tag
Riconoscimenti
Ispirato: Round to X
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.
| Versione | Pubblicato | Note della release | |
|---|---|---|---|
| 2.0.0.2 | Made code more memory efficient by not storing new version of vector |
||
| 2.0.0.1 | Tweaked NaN ignoring. |
||
| 2.0.0.0 | Added capability of ignoring NaN when a round vector is given. |
||
| 1.9.0.0 | Description Change, and required version update. |
||
| 1.8.0.0 | Little tweaks for speed
|
||
| 1.5.0.0 | The function can now round away from 0 (the opposite of floor). |
||
| 1.2.0.0 | Fixed problem with round when the number is in between two integers. |
||
| 1.0.0.0 |
