Find sum of digits in a number (like 4209=15)
Version 1.0.0.0 (1,36 KB) von
Mohammad Saadeh
Enter a number and calculate the sum of all digits
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 LinuxKategorien
- Test and Measurement > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
Mehr zu Image Acquisition Toolbox Supported Hardware finden Sie in Help Center und MATLAB Answers
Tags
Quellenangaben
Inspiriert: sum_digits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.0.0.0 |