cancel button code in inputdlg box in MATLAB

3 visualizaciones (últimos 30 días)
Taleb Almajrbi
Taleb Almajrbi el 27 de Mzo. de 2011
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

Respuesta aceptada

Walter Roberson
Walter Roberson el 27 de Mzo. de 2011
If you use cancel, then the return from inputdlg will be the empty matrix, detectable with isempty()
  1 comentario
Taleb Almajrbi
Taleb Almajrbi el 29 de Mzo. de 2011
Hi
can you explain more Please how to do it in the code?
thannks

Iniciar sesión para comentar.

Más respuestas (0)

Community Treasure Hunt

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

Start Hunting!

Translated by