Selecting files based on name - how to select files WITHOUT suffix

1 vue (au cours des 30 derniers jours)
Janna Hinchliff
Janna Hinchliff le 15 Fév 2019
Réponse apportée : adi kul le 15 Fév 2019
I've been given some data to analyse and the file names are in the following format:
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?

Réponses (1)

adi kul
adi kul le 15 Fév 2019
You can try this:
[filepath,name,ext] = fileparts(YourFileName);


En savoir plus sur Data Import and Analysis dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by