Remove a specific character with another - MATLAB Cody - MATLAB Central

Problem 59646. Remove a specific character with another

Difficulty:Rate
Remove any (-) dash sign with (_) underscore
Ex = 'The-Journey-of-thoudsands-miles-starts-with-a-single-step'
y = 'The_Journey_of_thoudsands_miles_starts_with_a_single_step'
If you like the problem, please like it :)

Solution Stats

54.69% Correct | 45.31% Incorrect
Last Solution submitted on Jun 23, 2025

Problem Comments

Solution Comments

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

Problem Recent Solvers125

Suggested Problems

More from this Author9

Problem Tags

Community Treasure Hunt

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

Start Hunting!