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

20 Ansichten (letzte 30 Tage)
How to get the file names that start with the same letter in the folder?

Akzeptierte Antwort

KSSV
KSSV am 17 Sep. 2021
Bearbeitet: KSSV am 17 Sep. 2021
f = dir('T*.bin') ;
N = length(f) ;
for i = 1:N
f(i).name
end

Weitere Antworten (2)

Matt J
Matt J am 17 Sep. 2021
Bearbeitet: Matt J am 17 Sep. 2021
For example,
s=dir('T*_imag.bin');
fileNames={s([s.isdir]==0).name}

Chunru
Chunru am 17 Sep. 2021
fn = dir('T*.*') % you can use 'T*.T', 'T15*.bin', etc

Kategorien

Mehr zu Audio I/O and Waveform Generation finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by