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

Enter a number and calculate the sum of all digits
670 Downloads
Aktualisiert 4. Jul 2011

Lizenz anzeigen

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

Zitieren als

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. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2007a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Quellenangaben

Inspiriert: sum_digits

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0