hello, I want to load multiple mat files for further process. But I am not getting any idea how to do it please help me. My mat file formate is 00603407c12f_2014-09-04, 00603407c12f_2014-09-05, 00603407c12f_2014-09-06 and so on. thanks

 採用された回答

dpb
dpb 2014 年 12 月 11 日

0 投票

00603407c12f_2014-09-04,
00603407c12f_2014-09-05,
00603407c12f_2014-09-06 and so on.
d=dir('00603407c12f_*.mat'); % find the matching files
for i=1:length(d)
load d(i).name
...
Use the functional form for load if want/need to use a different result variable name, etc., ...
doc load
for details.

1 件のコメント

Sean de Wolski
Sean de Wolski 2014 年 12 月 11 日
load(d(i).name)
I would recommend going a step further and storing the output in a structure
S(i) = load(d(i).name)
Now on each iteration you don't necessarily overwrite variables from the previous iteration

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeWorkspace Variables and MAT Files についてさらに検索

タグ

質問済み:

2014 年 12 月 11 日

コメント済み:

2014 年 12 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by