By looking at the solutions, you should probably add a case
c = {'data.mat', 'amat', 'repo.mat', 'matrix', '.mat'}
str = '*.mat'
6776 Solvers
2505 Solvers
666 Solvers
Project Euler: Problem 10, Sum of Primes
722 Solvers
Determine the number of odd integers in a vector
445 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!