cancel button code in inputdlg box in MATLAB
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
hi all i need help to get cancel button code in inputdlg box in MATLAB.when i press cancel button i got error. please reply me in a soon time if any one know the answer.
my code is
global A;
[angle]= inputdlg('Please Input Angle');
angle = str2double(angle);
A=imrotate(A,angle,'crop');
subplot(231),imshow(A),title('Orginal Image with Rotation');
Many thanks
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 27 Mär. 2011
If you use cancel, then the return from inputdlg will be the empty matrix, detectable with isempty()
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Filter Analysis 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!