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일

0 개 추천

files=dir('*.mat');
load(files(600).name);

추가 답변 (0개)

카테고리

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

제품

릴리스

R2017a

태그

질문:

2018년 7월 31일

댓글:

2018년 7월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by