how to resolve this error?
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
romasha
le 1 Fév 2014
Commenté : Azzi Abdelmalek
le 1 Fév 2014
a=imread(imgNameList(i,:));
>> slideshow Index exceeds matrix dimensions.
Error in slideshow (line 14) a=imread(imgNameList(i,:));
0 commentaires
Réponse acceptée
Azzi Abdelmalek
le 1 Fév 2014
Modifié(e) : Azzi Abdelmalek
le 1 Fév 2014
That means the value of i exceeds the number of element in imgNameList . you can check it by typing
size(imgNameList)
disp(i)
6 commentaires
Plus de réponses (1)
Walter Roberson
le 1 Fév 2014
imgNameList = {'images.jpg','images (1).jpg','images (2).jpg','download.jpg','images (4).jpg','images (5).jpg','images (6).jpg','images (7).jpg','eye3.jpg'};
pause on;
for i = 1:length(imgNameList)
a = imread(imgNameList{i});
imshow(a); drawnow; pause(2);
end
Voir également
Catégories
En savoir plus sur Startup and Shutdown dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!