필터 지우기
필터 지우기

How to get the file names that start with the same letter in the folder?

조회 수: 22 (최근 30일)
How to get the file names that start with the same letter in the folder?

채택된 답변

KSSV
KSSV 2021년 9월 17일
편집: KSSV 2021년 9월 17일
f = dir('T*.bin') ;
N = length(f) ;
for i = 1:N
f(i).name
end

추가 답변 (2개)

Matt J
Matt J 2021년 9월 17일
편집: Matt J 2021년 9월 17일
For example,
s=dir('T*_imag.bin');
fileNames={s([s.isdir]==0).name}

Chunru
Chunru 2021년 9월 17일
fn = dir('T*.*') % you can use 'T*.T', 'T15*.bin', etc

카테고리

Help CenterFile Exchange에서 File Name Construction에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by