select .txt file using a filter like *.txt
Afficher commentaires plus anciens
Hey Experts,
I want to select a .txt file from a directory. In this directory there is only one .txt file among a bunch of image files. Each time the name of the textfile is different. So I want something like: fopen *.txt I looked everywhere but I cannot find a solution for this on first sight easy problem.
Many thanks! Marten
Réponse acceptée
Plus de réponses (1)
nl2605
le 26 Mar 2014
0 votes
I am not sure if this is the simplest way. But you can use 'uigetfile'. Here you can use the .*txt filter. And then use the filename to open the text file.
Catégories
En savoir plus sur Data Import and Analysis 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!