Hello everyone, I have created this function to show multiple dicom images and select one of them:
for z=1:size(read) archive = read(z).name; R3 = (dicomread(archive)); imshow(R3); set(gcf, 'units','normalized','outerposition',[0 0 1 1]); promptMessage = sprintf('Select the first image\nmanually'); titleBarCaption = 'Manual'; button = questdlg(promptMessage, titleBarCaption, ... 'Next', 'Select', 'Previous', 'Next'); if strcmpi(button, 'Previous') ¿¿?? end if strcmpi(button, 'Select') %I execute the code
endend
My question is: how could I go back to the previous image when I push the "Previous" button without to break the for loop? What should I modify?
Thank you so much.
Best Answer