Info
此问题已关闭。 请重新打开它进行编辑或回答。
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 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!