Filter löschen
Filter löschen

problem with questdlg!!

2 Ansichten (letzte 30 Tage)
Khaled Al-Faleh
Khaled Al-Faleh am 17 Apr. 2017
Bearbeitet: Khaled Al-Faleh am 17 Apr. 2017
I want the code run infinite but Here work for two times then he gave me an error the error is ...
Operation terminated by user during movegui (line 157)
In questdlg (line 393)
movegui(QuestFig)
In Project_Test (line 25)
button = questdlg(promptMessage, titleBarCaption, 'Draw', 'Cancel', 'Draw');
here the code ..
I = imread('--'); %any image
imshow(I);
count=1;
while(1)
promptMessage = sprintf('Select area!');
titleBarCaption = 'Continue?!';
button = questdlg(promptMessage, titleBarCaption, 'Draw', 'Cancel', 'Draw');
if strcmpi(button, 'Cancel')
count=count-1;
break;
end
S1 = imrect;
count=count+1;
end

Antworten (0)

Kategorien

Mehr zu Dialog Boxes finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by