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

Stephen23
Stephen23 2017년 9월 14일
편집: Stephen23 2017년 9월 14일
@MiauMiau: how is the solution any different to that to your earlier question?:
MiauMiau
MiauMiau 2017년 9월 14일
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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

태그

질문:

2017년 9월 14일

댓글:

2017년 9월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by