load files when only partial filename is known

7 views (last 30 days)
MiauMiau
MiauMiau on 14 Sep 2017
Commented: MiauMiau on 14 Sep 2017
Hi
I am looking for a way to load all files which start with a certain string, say "Subject_1_Part_1.....mat". "..." would be a part which is unknown, or variabel - is there any way to load these files, i.e. something like load('Subject_1_Part_1*.mat')?
Thanks
  2 Comments
MiauMiau
MiauMiau on 14 Sep 2017
Sorry, I actually remembered only the first part of the answer (which is quite a work around) and not this: listing = dir('results*.m'); which is indeed helpful. Thx

Sign in to comment.

Answers (0)

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!