How to fix an error in which the system could not read image from folder under loop, using "dir" function?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Daniel Vainshtein
le 27 Mar 2019
Modifié(e) : Stephen23
le 27 Mar 2019
I have the following code:
files = dir('1folder/*.bmp');
for k =1:length(files)
I = imread(files(k).name);
end
but I always got this error messege:
Error using imread (line 349)
File "picture-0000.bmp" does not exist.
but my bmp file is exist, in the original folder and in the files structure built by the dir function.
I would like to know how to fix this error...
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur File Operations 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!