load files when only partial filename is known

10 ビュー (過去 30 日間)
MiauMiau
MiauMiau 2017 年 9 月 14 日
コメント済み: MiauMiau 2017 年 9 月 14 日
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 件)

カテゴリ

Help Center および File ExchangeStartup and Shutdown についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by