Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
I want to display different images on different axes after reading from directory but i don't know how to display images on different axes using for loop ...here is my code plz help me
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
myFolder = 'C:\Users\Ali Khan\Desktop\arslan code\test images'; if ~isdir(myFolder) errorMessage = sprintf('Error: The following folder does not exist:\n%s', myFolder); uiwait(warndlg(errorMessage)); return; end filePattern = fullfile(myFolder theFiles = dir(filePattern); for k = 1 : length(theFiles)
baseFileName = theFiles(k).name;
fullFileName = fullfile(myFolder, baseFileName);
imageArray = imread(fullFileName);
imshow(imageArray,'parent',handles.axes{k});
end
% drawnow; % Force display to update immediately.
end
0 comentarios
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!