hi, please how can I create a question dialog to leave the interface when I click in the red button .thank you for help
조회 수: 1 (최근 30일)
이전 댓글 표시
답변 (1개)
MBD4FUN
2016년 4월 8일
편집: MBD4FUN
2016년 4월 8일
Is this what you want? (note: different look and feel for Windows OS)
button = questdlg('Are you sure to quit?','Question','Yes','No','No');
switch button
case 'Yes',
quit
case 'No',
quit cancel;
end
A similar example is also provided by the Matlab help documentations. Have a look at it by typing "help quit" and hit enter at the Matlab Command Window. Sometimes do a little research by using the Matlab help documents could solve many problems.
Cheers, MBD4FUN
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!