loop for and file nonexistant
Mostrar comentarios más antiguos
hi,
I have a folder 'Base' that contains 80 images (image 1 is called '1. jpg ', the second is '2. jpg', ............ '80. jpg ') I want to read these images using a loop for.I writethis:
for i = 1:80 imread ('Base \% d.jpg ', i);
but an error stating nonexistent file.
What's the problem. Please help
Respuesta aceptada
Más respuestas (1)
Walter Roberson
el 30 de Ag. de 2013
0 votos
Spacing is important. '%d' not '% d' for example. But a more immediate problem is that imread() must be given a complete file name; it will not construct one like you have shown.
1 comentario
ra chaaba
el 30 de Ag. de 2013
Categorías
Más información sobre Denoising and Compression en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!