How can I read in a number from a file name?
Afficher commentaires plus anciens
In my program the user selects a dicom file and I need to know a number that is contained within the file name.
For example, the file name could be "Image10_processed.dcm", and I want to take the 10 so I can use that to find the corresponding info in another file.
Is there a way that I can break the file name down and just take the number? I've looked elsewhere and there seems to be no simple solutions.
Any help is much appreciated.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Convert Image Type dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!