필터 지우기
필터 지우기

Load certain index .mat file

조회 수: 5 (최근 30일)
Tsuwei Tan
Tsuwei Tan 2018년 7월 31일
댓글: Tsuwei Tan 2018년 7월 31일
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);
  댓글 수: 1
Tsuwei Tan
Tsuwei Tan 2018년 7월 31일
Thank you! Simple and very explicit!

댓글을 달려면 로그인하십시오.

추가 답변 (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