Summation of Non Zeros Numbers in String Variable - MATLAB Cody - MATLAB Central

Problem 59556. Summation of Non Zeros Numbers in String Variable

Difficulty:Rate
Find the Summation of Non Zeros Numbers in String Variable
The input : x = '100205'
The Output : y = 8

Solution Stats

90.0% Correct | 10.0% Incorrect
Last Solution submitted on Jan 30, 2025

Problem Comments

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
2
4

Problem Recent Solvers18

Suggested Problems

More from this Author2

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page