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

Enter a number and calculate the sum of all digits
668 téléchargements
Mise à jour 4 juil. 2011

Afficher la licence

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

Citation pour cette source

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. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2007a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Remerciements

A inspiré : sum_digits

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0