By looking at the solutions, you should probably add a case
c = {'data.mat', 'amat', 'repo.mat', 'matrix', '.mat'}
str = '*.mat'
657 Solvers
Wind outward from the center ...
67 Solvers
728 Solvers
304 Solvers
191 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!