By looking at the solutions, you should probably add a case
c = {'data.mat', 'amat', 'repo.mat', 'matrix', '.mat'}
str = '*.mat'
Find state names that end with the letter A
722 Solvers
274 Solvers
1894 Solvers
Make an awesome ramp for a tiny motorcycle stuntman
341 Solvers
78 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!