String Find with Wildcards of a Cell array - MATLAB Cody - MATLAB Central

Problem 42810. String Find with Wildcards of a Cell array

Difficulty:Rate

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

28.81% Correct | 71.19% Incorrect
Last Solution submitted on Jun 02, 2024

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...
2
4
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 Solvers15

Suggested Problems

More from this Author308

Community Treasure Hunt

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

Start Hunting!
Go to top of page