String Manipulator - MATLAB Cody - MATLAB Central

Problem 54350. String Manipulator

Difficulty:Rate
Write a script that takes a string as an input and returns a cell array containing
I. the count of vowels.
II. Find the index of ‘o’
III. The string removing all the vowels.
IV. The string removing all the letters from a to j.
V. The string removing all the consonants.
VI. The string replacing all the vowels with an asterisk (*)
VII. The string removing all the digits.
Hint: Use Regular Expression

Solution Stats

41.67% Correct | 58.33% Incorrect
Last Solution submitted on Feb 03, 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
LLMs with MATLAB updated to support the latest OpenAI Models
Large Languge model with MATLAB, a free add-on that lets you access...
2
4

Problem Recent Solvers18

Suggested Problems

More from this Author1

Community Treasure Hunt

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

Start Hunting!