Borrar filtros
Borrar filtros

Load certain index .mat file

5 visualizaciones (últimos 30 días)
Tsuwei Tan
Tsuwei Tan el 31 de Jul. de 2018
Comentada: Tsuwei Tan el 31 de Jul. de 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!

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Structures en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by