Find sum of digits in a number (like 4209=15)

Enter a number and calculate the sum of all digits
668 descargas
Actualizado 4 jul 2011

Ver licencia

This script sums up all digits in a number, for example the number 548012410121 will output 29 which is the sum of all digits

Citar como

Mohammad Saadeh (2024). Find sum of digits in a number (like 4209=15) (https://www.mathworks.com/matlabcentral/fileexchange/32047-find-sum-of-digits-in-a-number-like-4209-15), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2007a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Agradecimientos

Inspiración para: sum_digits

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