Selecting files based on name - how to select files WITHOUT suffix
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I've been given some data to analyse and the file names are in the following format:
Optowell3956814
Optowell3956814Censoring
Optowell3956814FailTimes
Optowell3956814scantimes
where the number in the middle changes depending on the sample. I want to be able to select all of the files of the form Optowell3956814 and ignore the others. How can I select these?
0 Kommentare
Antworten (1)
adi kul
am 15 Feb. 2019
You can try this:
[filepath,name,ext] = fileparts(YourFileName);
0 Kommentare
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!