Info

Questa domanda è chiusa. Riaprila per modificarla o per rispondere.

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 visualizzazione (ultimi 30 giorni)
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

Risposte (0)

Questa domanda è chiusa.

Community Treasure Hunt

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

Start Hunting!

Translated by