Find sum of digits in a number (like 4209=15)
Version 1.0.0.0 (1.36 KB) by
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
Cite As
Mohammad Saadeh (2026). Find sum of digits in a number (like 4209=15) (https://uk.mathworks.com/matlabcentral/fileexchange/32047-find-sum-of-digits-in-a-number-like-4209-15), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Test and Measurement > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
Find more on Image Acquisition Toolbox Supported Hardware in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired: sum_digits
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
