given a string 'str', count the number of the followings -

  • letters
  • digits
  • white space
  • capital letters
  • small letters
  • punctuation marks

output should be an array y containing the numbers in the same order.

Solution Stats

53 Solutions

20 Solvers

Last Solution submitted on Jan 23, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers20

Suggested Problems

More from this Author174

Problem Tags

Community Treasure Hunt

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

Start Hunting!