Find sum of digits in a number (like 4209=15)
版本 1.0.0.0 (1.4 KB) 作者:
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
引用格式
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. 检索时间: .
MATLAB 版本兼容性
创建方式
R2007a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- Test and Measurement > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
- Image Processing and Computer Vision > Image Acquisition Toolbox > Image Acquisition Toolbox Supported Hardware >
在 Help Center 和 MATLAB Answers 中查找有关 Image Acquisition Toolbox Supported Hardware 的更多信息
标签
致谢
启发作品: sum_digits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |