MATLAB: Load multiple mat files

.mat file

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

Best Answer

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.