Find sum of digits in a number (like 4209=15)
Version 1.0.0.0 (1,36 ko) par
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
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 LinuxCatégories
- Test and Measurement > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
En savoir plus sur Image Acquisition Toolbox Supported Hardware dans Help Center et MATLAB Answers
Tags
Remerciements
A inspiré : sum_digits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0.0 |