Info
This question is closed. Reopen it to edit or answer.
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
2 views (last 30 days)
Show older comments
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 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!