By looking at the solutions, you should probably add a case
c = {'data.mat', 'amat', 'repo.mat', 'matrix', '.mat'}
str = '*.mat'
135 Solvers
63 Solvers
Duplicate each element of a vector.
518 Solvers
How many monitors are connected ?
127 Solvers
299 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!