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

20 次查看(过去 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 中查找有关 Audio I/O and Waveform Generation 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by