sum of ASCII - MATLAB Cody - MATLAB Central

Problem 43111. sum of ASCII

Difficulty:Rate

Given a string x, return the sum of all ASCII numbers of all characters.

for example, if x='lala' ('l'-> 108, 'a'->97) then y = 108+97+108+97

Solution Stats

89.87% Correct | 10.13% Incorrect
Last Solution submitted on May 06, 2025

Solution Comments

Show comments

Problem Recent Solvers68

Suggested Problems

More from this Author25

Problem Tags

Community Treasure Hunt

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

Start Hunting!