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!