Find the numeric characters in a string and return their index - MATLAB Cody - MATLAB Central

Problem 43138. Find the numeric characters in a string and return their index

Difficulty:Rate

Given a string S, return the index of any numeric characters.

S = 'The next meeting will be held in 2 weeks.';
idx = find_numeric(S);

So, idx = 34 in the example.

Solution Stats

65.71% Correct | 34.29% Incorrect
Last Solution submitted on May 15, 2025

Problem Comments

Solution Comments

Show comments
PIVlab surpasses 100K all-time File Exchange downloads
During the past twelve months, PIVlab, a MATLAB Community Toolbox for particle...
4
8

Problem Recent Solvers45

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

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

Start Hunting!