Filter löschen
Filter löschen

Load certain index .mat file

5 Ansichten (letzte 30 Tage)
Tsuwei Tan
Tsuwei Tan am 31 Jul. 2018
Kommentiert: Tsuwei Tan am 31 Jul. 2018
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!

Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 31 Jul. 2018
files=dir('*.mat');
load(files(600).name);
  1 Kommentar
Tsuwei Tan
Tsuwei Tan am 31 Jul. 2018
Thank you! Simple and very explicit!

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Structures finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by