roundd.m

Rounds an array up to N digits from the left.
2K descargas
Actualizado 4 may 2016

Ver licencia

Rounds an array up to N digits from the left, taking the element with more digits to the left ['max(abs(x(:)))'] as the reference. So, it is different from ROUNDN (mappinf toolbox) because this latter takes the dot as reference.
roundd(0.012345,3) = 0.012300
roundd(0.012345,4) = 0.012350, etc

Note: inside there is a function that check where an array has integer (natural numbers) elements: ISNATURAL

Check the screenshot for an example.

Citar como

Carlos Adrian Vargas Aguilera (2024). roundd.m (https://www.mathworks.com/matlabcentral/fileexchange/12992-roundd-m), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R14SP3
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Categorías
Más información sobre Numbers and Precision en Help Center y MATLAB Answers.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versión Publicado Notas de la versión
1.0.0.0

BSD License