how to display using subplot one by one.

Respuestas (1)

Sean de Wolski
Sean de Wolski el 24 de Dic. de 2014
Add this line to the first part of your for-loop
subplot(2,2,i)

1 comentario

Image Analyst
Image Analyst el 24 de Dic. de 2014
Editada: Image Analyst el 24 de Dic. de 2014
And add this too
baseFileName = sprintf('%d.jpg',i);
fullFileName = fullfile(pwd, baseFileName);
if exist(fullFileName, 'file')
c{i}=imread(fullFileName);
else
c{i} = [];
message = sprintf('Warning: %s does not exist', fullFileName);
uiwait(warndlg(message));
end

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Centro de ayuda y File Exchange.

Preguntada:

el 24 de Dic. de 2014

Editada:

el 24 de Dic. de 2014

Community Treasure Hunt

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

Start Hunting!

Translated by