Load data with .SPC extensions and certain name characteristics
Show older comments
Hello,
Say I have a folder containing multiple .spc files (see image below). How do I load only .spc files which has abc as part of the name. As one can see, there are 5 files with .spc extensions but only 3 of them have abc as part of the name. What code/script can I use to load only the .spc files with abc as part of the name?

Thanks!
Answers (1)
Stephen23
on 2 Jan 2023
S = dir('*abc.spc')
then loop over the filenames as usual:
Categories
Find more on General Applications in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!