roundtowardvec
Round a vector of values towards a given vector of choices.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Cite As
Tom R (2026). roundtowardvec (https://in.mathworks.com/matlabcentral/fileexchange/37674-roundtowardvec), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Round to X
General Information
- Version 2.0.0 (2.14 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 2.0.0 | 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 | Description Change, and required version update. |
||
| 1.8.0 | Vectorized rounding operations for speed. |
||
| 1.5.0 | The function can now round away from 0 (the opposite of floor). |
||
| 1.2.0 | Fixed problem with round when the number is in between two integers. |
||
| 1.0.0 |