Put all numbers in a string inside square brackets - MATLAB Cody - MATLAB Central

Problem 43077. Put all numbers in a string inside square brackets

Difficulty:Rate

Examples:

'left3down2' -> 'left[3]down[2]'
'fiat500' -> 'fiat[500]'

Solution Stats

33.8% Correct | 66.2% Incorrect
Last Solution submitted on Aug 20, 2024

Problem Comments

Solution Comments

Show comments
Why should you share code?
In a discussion on LInkedin about my recent blog post, Do these...
1
2

Problem Recent Solvers23

Suggested Problems

More from this Author9

Community Treasure Hunt

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

Start Hunting!