load files when only partial filename is known

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 Kommentare

Stephen23
Stephen23 am 14 Sep. 2017
Bearbeitet: Stephen23 am 14 Sep. 2017
@MiauMiau: how is the solution any different to that to your earlier question?:
MiauMiau
MiauMiau am 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

am 14 Sep. 2017

Kommentiert:

am 14 Sep. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by