Reading files with different extension from directory
Ältere Kommentare anzeigen
Currently I am reading files from a directory using "fullName = dir([path '*.tif'])" to find all files with the .tif extension. If the folder contains .png files instead, I have to change the code to "fullName = dir([path '*.png'])". Is there a way to do this without changing the code i.e. is there a way to read the image file from a folder that contains either .png or .tif files without changing the code?
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!