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
670.0 次下载
更新时间 2011/7/4

查看许可证

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
致谢

启发作品: 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