cancel button code in inputdlg box in MATLAB
2 ビュー (過去 30 日間)
古いコメントを表示
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 件のコメント
採用された回答
Walter Roberson
2011 年 3 月 27 日
If you use cancel, then the return from inputdlg will be the empty matrix, detectable with isempty()
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Filter Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!