Load certain index .mat file

5 次查看(过去 30 天)
Please find the attached pic.
I have 164,934 .mat files at the folder
Is there a way to load one .mat by knowing only the index?
For instance, I would like to load number 600th .mat out of 164,934 without knowing the file name.
Thank you!

采纳的回答

Fangjun Jiang
Fangjun Jiang 2018-7-31
files=dir('*.mat');
load(files(600).name);

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Structures 的更多信息

标签

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by