Borrar filtros
Borrar filtros

how to resolve this error?

1 visualización (últimos 30 días)
romasha
romasha el 1 de Feb. de 2014
Comentada: Azzi Abdelmalek el 1 de Feb. de 2014
a=imread(imgNameList(i,:));
>> slideshow Index exceeds matrix dimensions.
Error in slideshow (line 14) a=imread(imgNameList(i,:));

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 1 de Feb. de 2014
Editada: Azzi Abdelmalek el 1 de Feb. de 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 comentarios
romasha
romasha el 1 de Feb. de 2014
thanx but there is another problem when image get change gui figure loads every time which doesn't look nice how to solve this?
Azzi Abdelmalek
Azzi Abdelmalek el 1 de Feb. de 2014
This is not clear

Iniciar sesión para comentar.

Más respuestas (1)

Walter Roberson
Walter Roberson el 1 de Feb. de 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
  2 comentarios
romasha
romasha el 1 de Feb. de 2014
thanx :-)
romasha
romasha el 1 de Feb. de 2014
thanx but there is another problem when image get change gui figure loads every time which doesn't look nice how to solve this?

Iniciar sesión para comentar.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by