Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

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 Ansicht (letzte 30 Tage)
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

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by