Given a cell array of strings and a search string with single character (?) or multiple character (*) wildness return the indices of the cell array that match.

Examples:

{'abc' 'bdce' 'bkcz'},'b?c'  outputs [2 3] 'abc' invalid as ? requires a character
{'abcdfhjkfd' 'cf' 'fjhkc' 'fdjk'}, 'c*f' outputs [1 2], no char required for * 

Solution Stats

63 Solutions

18 Solvers

Last Solution submitted on Jul 24, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers18

Suggested Problems

More from this Author306

Community Treasure Hunt

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

Start Hunting!