cancel button code in inputdlg box in MATLAB

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

 채택된 답변

Walter Roberson
Walter Roberson 2011년 3월 27일

0 개 추천

If you use cancel, then the return from inputdlg will be the empty matrix, detectable with isempty()

댓글 수: 1

Taleb Almajrbi
Taleb Almajrbi 2011년 3월 29일
Hi
can you explain more Please how to do it in the code?
thannks

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by